RandomDataFrame
Creates a dataframe with random data for quick and simple dataframe verification processes and experiments. This kit is useful for learning and trying things related to dataframes. You can specify the number of columns in the dataframe, number of rows, and the minimum and maximum values of the randomized data.
Options
rowCount: Specifies the number of rows in the random dataframe
columnCount: Specifies the number of columns in the random dataframe
min: Specifies the minimum value for random data
max: Specifies the maximum value for random data
Examples
Example 1 - Generate a Custom-Sized Random DataFrame
Generates a lightweight dataframe with 3 columns and 10 rows. Useful for demoing logic, formatting, or functionality in a quick and controlled setup.
#> RandomDataFrame --columnCount 3 --rowCount 10
AFLEFT
dfRandomData = {
'Column1': np.random.randint(1, 101, size=10),
'Column2': np.random.randint(1, 101, size=10),
'Column3': np.random.randint(1, 101, size=10),
}
df = pd.DataFrame(dfRandomData) AFRIGHT