pandas: 获取Dataframe的行数和列数

#列数
df.shape[1]

#行数
df.shape[0]   或者:len(df)