Buat daftar indeks panda
df.index.values.tolist() # an ndarray method, you probably shouldn't depend on this
Horrible Hoopoe
df.index.values.tolist() # an ndarray method, you probably shouldn't depend on this
list(df.index.values) # this will always work in pandas