Skip to content

Commit 0406541

Browse files
authored
🔁 Edit README
1 parent 1797ab4 commit 0406541

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,3 +43,15 @@ Print 10 random Rows from a Dateframe. (Method .sample(amount))
4343
# Print 10 random Rows from a Dateframe
4444
print(df.sample(10))
4545
```
46+
47+
## Create Data Frame 🗂
48+
Print 10 random Rows from a Dateframe. (Method .sample(amount))
49+
```
50+
# Create data for the Data Frame
51+
data = {'state': ['Ohio', 'Ohio', 'Ohio', 'Nevada', 'Nevada', 'Nevada'],
52+
'year': [2000, 2001, 2002, 2001, 2002, 2003],
53+
'pop': [1.5, 1.7, 3.6, 2.4, 2.9, 3.2]}
54+
55+
# Create Data Frame
56+
df = pd.DataFrame(data)
57+
```

0 commit comments

Comments
 (0)