how to do a scatter plot in matplotlib from a pandas dataframe code example
Example: scatter plot of a dataframe in python
>>> ax2 = df.plot.scatter(x='length',
... y='width',
... c='species',
... colormap='viridis')