获取数据框的行、列数
# 获取行数
df.shape[0]
# 获取行数
len(df)
# 获取列数
df.shape[1]
获取数据框的行、列数
# 获取行数
df.shape[0]
# 获取行数
len(df)
# 获取列数
df.shape[1]
相关文章: