📌  相关文章
📜  如何获取熊猫数据框python代码示例的索引

📅  最后修改于: 2022-03-11 14:47:07.503000             🧑  作者: Mango

代码示例3
import pandas as pd

df = pd.DataFrame(
    [[88, 72, 67],
    [23, 78, 62],
    [55, 54, 76]],
    index=[2, 4, 9],
    columns=['a', 'b', 'c'])

index = df.index
print(index)