# let's have a look at how many labels each variable has for col in Train_Inpatientdata.columns: print(col, ': ', len(Train_Inpatientdata[col].unique()), ' labels') code example
Example: dataframe unique values in each column
for col in df:
print(df[col].unique())