df.plot scatter code example
Example 1: scatter plot of a dataframe in python
>>> ax2 = df.plot.scatter(x='length',
... y='width',
... c='species',
... colormap='viridis')
Example 2: how to get label for points from a column in dataframe for scatter plot in python
groups = data.groupby("Category")