Skip to content

Commit 778ed32

Browse files
authored
🔁 Update README
1 parent ca982d2 commit 778ed32

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

README.md

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -18,48 +18,28 @@ df = pd.read_csv("new_york_city.csv")
1818
## Print Rows from a Dateframe using an Integer Index 🗃
1919
Print 10 Rows from a Dateframe using an Integer Index from 10-20. (Method .iloc[from:to])
2020
```
21-
import pandas as pd
22-
23-
df = pd.read_csv("new_york_city.csv")
24-
2521
# Print 10 Rows from Dateframe with Integer Index from 10-20
26-
2722
print(df.iloc[10:20])
2823
```
2924

3025
## Print the first Rows from a Dateframe 🗃
3126
Print the first 10 Rows from a Dateframe. (Method .head(amount))
3227
```
33-
import pandas as pd
34-
35-
df = pd.read_csv("new_york_city.csv")
36-
3728
# Print the first 10 Rows from the Dateframe
38-
3929
print(df.head(10))
4030
```
4131

4232

4333
## Print Rows from a Dateframe and sort them with an attribute 🗃
4434
Print 10 Rows from a Dateframe using an Integer Index from 0-10 and sort them with an attribute. (Method .sort_values(["Start Time"]))
4535
```
46-
import pandas as pd
47-
48-
df = pd.read_csv("new_york_city.csv")
49-
5036
# Prints the first 10 Rows, sorted by Start Time
51-
5237
print(df.iloc[0:10].sort_values(["Start Time"]))
5338
```
5439

5540
## Print 10 random Rows from a Dateframe 🗃
5641
Print 10 random Rows from a Dateframe. (Method .sample(amount))
5742
```
58-
import pandas as pd
59-
60-
df = pd.read_csv("new_york_city.csv")
61-
6243
# Print 10 random Rows from a Dateframe
63-
6444
print(df.sample(10))
6545
```

0 commit comments

Comments
 (0)