可以使用 .shape 属性或者 len(DataFrame.index) 。 但是,有明显的性能差异( .shape 属性更快): In [1]: import numpy as np In [2]: import pandas as pd In ...
確定! 回上一頁