如何获得 Pandas dataframe 对象的行数

You can use the .shape property or just len(DataFrame.index). However, there are notable performance differences ( len(DataFrame.index) is fastest): In [1]: import numpy as np In [2]: import pandas a
相关文章
相关标签/搜索