pandas.DataFrame.shape 返回数据帧的形状 用法 df为Dataframe格式数据 df.shape 返回df形状(2,3) 2行3列 df.shape[0] 返回行数 de.shape[1] 返回列数 。