Pandas: Group by Single Column Entries
Your issue might occur if you didn't tell that the second row in the table should also be considered a header line.
To address this, try to reset the header at the beginning.
import pandas as pd

df = pd.read_csv('YOUR/FILE/DIRECOTRY.csv', skiprows=1) // ignore the 2nd row (0-indexed)
df.rename(columns={0:'Index'}, inplace=True) // optional
df.groupby(['Occupation'])