We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 68730a7 commit dab9d7bCopy full SHA for dab9d7b
README.md
@@ -28,7 +28,7 @@ print(df.iloc[10:20])
28
```
29
30
## Print the first Rows from a Dateframe 🗃
31
-Print the first 10 Rows from a Dateframe. (Method .head(10))
+Print the first 10 Rows from a Dateframe. (Method .head(amount))
32
33
import pandas as pd
34
@@ -51,3 +51,15 @@ df = pd.read_csv("new_york_city.csv")
51
52
print(df.iloc[0:10].sort_values(["Start Time"]))
53
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