this is the code i have
import pandas as pd
population_data = pd.read_csv("pop_data.csv",index_col="State")
population_data = population_data.groupby("State")["population"].sum().reset_index()
now if i type
print(population_data["State"])
then this is the output
0 AK
1 AL
2 AR
3 AZ
4 CA
.
.
.
50 WY
Name: State, dtype: object
I'm looking for a simple for loop code to just print the word "AK" or "AL" etc as the title for each graph separately