Pandas Print Index Code Example

Snippet 1
  # Import pandas package  
import pandas as pd  
    
# making data frame  
data = pd.read_csv("data.csv")  
  
print(data.index)