# For accessing dataframe index:
df.index
# For retrieving dataframe index as list:
df.index.tolist()
# for accessing value for an index:
df.at[index_value, column_value]
df.index[df['BoolCol'] == True].tolist()
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)
df.index
DataFrame.index