Created
November 23, 2017 19:55
-
-
Save zinyosrim/2e4fbb789ccf1e2edcf7092e563df58e to your computer and use it in GitHub Desktop.
Generate Pandas Dataframe with random integers
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pandas as pd | |
import numpy as np | |
from random import randint | |
df = pd.DataFrame(np.random.randint(0,10,size=(10, 3)), columns=list('ABC'), index=range(1,11)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment