Skip to content

Commit dab9d7b

Browse files
authored
🔁 Update README
1 parent 68730a7 commit dab9d7b

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

README.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ print(df.iloc[10:20])
2828
```
2929

3030
## Print the first Rows from a Dateframe 🗃
31-
Print the first 10 Rows from a Dateframe. (Method .head(10))
31+
Print the first 10 Rows from a Dateframe. (Method .head(amount))
3232
```
3333
import pandas as pd
3434
@@ -51,3 +51,15 @@ df = pd.read_csv("new_york_city.csv")
5151
5252
print(df.iloc[0:10].sort_values(["Start Time"]))
5353
```
54+
55+
## Print 10 random Rows from a Dateframe 🗃
56+
Print 10 random Rows from a Dateframe. (Method .sample(amount))
57+
```
58+
import pandas as pd
59+
60+
df = pd.read_csv("new_york_city.csv")
61+
62+
# Print 10 random Rows from a Dateframe
63+
64+
print(df.sample(10))
65+
```

0 commit comments

Comments
 (0)