dataframe获取列名称和列数

1、获取列名称
df.columns

2、获取行数
df.shape[0]
3、获取列数
df.shape[1]

你可能感兴趣的:(dataframe获取列名称和列数)