%matplotlib inline import pandas as pd import numpy as np import matplotlib.pyplot as plt x = np.random.rand(100) y = np.random.rand(100) df = pd.DataFrame(dict(x=x, y=y,)) plt.scatter(x, y) plt.show() df
100 rows × 2 columns