I am trying to visualise my data to understand the data skewness. For that purpose, I use the below and get desired output -
df.groupby('owner_team').inc_subj.count().plot.bar(ylim=0)
Output -
My concern is the x-axes labels are shown as numbers, which is the exactly values present. But, my desire is to see the names (string values) corresponding to those numbers.
To give a little bit of background, initially they were string values which I converted to integer values using factorize()
:
df['owner_team'], mapp = df['owner_team'].factorize()
I am referencing this Pandas doc but couldn't find the exact parameter to set.
Tried labels
but didn't help.
Any pointers please.
ps. Using Pandas v0.23.4 and Python v3.6