scatter plot pyhton code example
Example 1: scatter plot python
df.plot('x_axis', 'y_axis', kind='scatter')
Example 2: matplotlib scatter
# Import packages
import matplotlib.pyplot as plt
%matplotlib inline
# Create the plot
fig, ax = plt.subplots()
# Plot with scatter()
ax.scatter(x, y)
# Set x and y axes labels, legend, and title
ax.set_title("Title")
ax.set_xlabel("X_Label")
ax.set_ylabel("Y_Label")