I need to plot a graph between various attributes of my dataset ans all I know as per my current knowledge is histogram, and in that I can take only one variable.
I tried with this simple code:
sn.catplot(x="CDR", y="Age", hue="M/F", data=df);
plt.title('Distribution of Age by CDR rate')
CDR is Clinical Dementia Rating.
I do have code in R language ,they have 1st grouped them all and then plotted the graph but I found that even more complecated so I decided to go with this way.
This is the type of graph I need.
I am clueless about this error. I tried df.CDR, df.age, df.M/F and that is giving error due to name "M/F".
'DataFrame' object has no attribute 'M'
I tried changing name in dataset but that's giving even more errors.
Help!!!! df.head()