pandas 求 DataFrame 的行数和列数 程序媛三妹 2022-05-14 212 阅读1分钟 假设有 dataFrame 叫 df。 1、求行数 法一: len(df) 法二: df.shape[0] 2、求列数 df.shape[1] 以上,问题解决~