python - How to create a DataFrame of random integers with Pandas? - Stack Overflow

PHOTO EMBED

Fri Feb 18 2022 08:01:13 GMT+0000 (Coordinated Universal Time)

Saved by [deleted user] #python

import numpy as np
import pandas as pd
df = pd.DataFrame(np.random.randint(0,100,size=(100, 4)), columns=list('ABCD'))
content_copyCOPY

https://stackoverflow.com/questions/32752292/how-to-create-a-dataframe-of-random-integers-with-pandas