pandas.Index.shape# property Index.shape[源代码]# 返回底层数据形状的元组。 Examples >>> idx = pd.Index([1, 2, 3]) >>> idx Index([1, 2, 3], dtype='int64') >>> idx.shape (3,)