Pandas-With-Random-Int
Sat 17 May 2025
title: "Pandas with Random Int" author: "Rj" date: 2019-04-22 description: "-" type: technical_note draft: false
import numpy as np
import pandas as pd
df = pd.DataFrame(np.random.randint(0, 100, size=(3, 2)), columns=list('xy'))
df
| x | y | |
|---|---|---|
| 0 | 63 | 81 |
| 1 | 54 | 35 |
| 2 | 63 | 67 |
Score: 0
Category: data-wrangling