The dataset I have is a lot larger than this (about 3000 rows * 50 columns), I'm just going to put a sample here. It's a dataframe including information for every line. Basically, I intended to analyze the attribute of each label, like Level 3 might have a higher annual income; or what contribute to higher level. What statistical functions might be a good fit to analyze it? I'm trying with sklearn.preprocessing.OrdinalEncoder() to labelize every category variable and trying something like stats.chi2.ppf() or correlation matrix. Not sure if they work out in my case.
example = pd.DataFrame(
{
"Degree": ['Graduate', 'Undergraduate', 'Undergraduate', 'Graduate', 'Undergraduate', 'Doctorate'],
"Age": ['Age 26-35','Age 18-25','Age 18-25','Age 18-25', 'Age 26-35', 'Older than 35'],
"Location": ['VA','DC','DC','CA','DC','MA'],
"Gender": ['male','male','female','male','male','female'],
"Annual Income": ['\$5,001 - \$10,000','<$5,000','\$15,001 - \$25,000','>\$50,000','<\$5,000','\$15,001 - \$25,000'],
"Level": [0,1,2,0,0,3],
}
)
Degree Age Location Gender Annual Income Level
0 Graduate Age 26-35 VA male $5,001 - $10,000 0
1 Undergraduate Age 18-25 DC male <$5,000 1
2 Undergraduate Age 18-25 DC female $15,001 - $25,000 2
3 Graduate Age 18-25 CA male >$50,000 0
4 Undergraduate Age 26-35 DC male <$5,000 0
5 Doctorate Older than 35 MA female $15,001 - $25,000 3
Open to any ideas and comments.


