import numpy as np import pandas as pd df = pd.DataFrame(np.random.randint(0,100,size=(100, 4)), columns=list('ABCD'))
Here is what the above code is Doing:
1. We’re creating a DataFrame with 100 rows and 4 columns.
2. We’re filling the DataFrame with random integers between 0 and 100.
3. We’re giving the columns names A, B, C, and D.