Python Forum

Full Version: How do you create a scatterplot of dataframe using matplotlib?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
A very simple question.

I tried looking for how to make a scatterplot with matplotlib (as usual, the official documentation was irrelevant) and most of the examples were with manually entered x/y data which makes no sense because you would never actually do that, and the other five or so examples were all different and none of them worked. For example

#matplotlib.pyplot.scatter('BirthYear','AgeRecdSmartphone')
#studentd.scatter('BirthYear', 'AgeRecdSmartphone')

studentd.plot.scatter(x='BirthYear', y='AgeRecdSmartphone')

sort of works except that the y axis has no sort whatsoever: it goes top to bottom, 111,16,17,15,"11","10",8,9,13,10,11,12,14, therefore no pattern is visible.
How do I subscribe? No button is shown.