Generate random numbers with Python dataframe

Paul Yang - September 15th, 2022

Frequently, I find that I want to generate a quick table filled with random values for demo purposes. Maybe there’s some code, transformation, or function I need to test, but don’t have my real data yet.

This widget lets you quickly and easily generate dummy data for your use cases in a Pandas dataframe.

import pandas as pd
import numpy as np

numRows = 100   #number of rows
numCols = 10    #number of columns
minInt = 1      #minimum number
maxInt = 100    #maximum number

df = pd.DataFrame(np.random.randint(minInt,maxInt,size=(numRows, numCols)))


Start using Einblick

Pull all your data sources together, and build actionable insights on a single unified platform.

  • All connectors
  • Unlimited teammates
  • All operators