dataframe 获取行数和列数

获取行数

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

获取列数

df.shape[1]

Supongo que te gusta

Origin blog.csdn.net/weixin_45659364/article/details/119646397
Recomendado
Clasificación