pandas.DataFrame.shape? 返回數(shù)據(jù)幀的形狀
用法
????df為Dataframe格式數(shù)據(jù)
? ??df.shape? ? 返回df形狀(2,3)? 2行3列
? ??df.shape[0]? 返回行數(shù)
? ??de.shape[1]? 返回列數(shù)
參考與詳細:
? ? 官方文檔??https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.shape.html
????博? ? ? ?客? https://blog.csdn.net/lwgkzl/article/details/80988126
感謝行冰!