1import matplotlib.pyplot as plt
2# scatter plot with scatter() function
3# bubble size with "s"
4# df dataframe contain columns X, Y, Z variables values
5plt.scatter('X', 'Y', s='Z', data=df)
6plt.xlabel("X", size=16)
7plt.ylabel("y", size=16)
8plt.title("Bubble Plot", size=18)
9