pandas dataframe iloc取series

df.iloc[0,:]得出的是series
df.iloc[0:1,:]得出的是dataframe

猜你喜欢

转载自blog.csdn.net/qq_15114041/article/details/85063151