Skip to content

Commit 71b76fc

Browse files
authored
🔁 Update README
1 parent f9f6606 commit 71b76fc

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

README.md

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,26 @@ The easiest way to install Pandas is with pip. Type in your console:
77
pip install pandas
88
```
99

10-
## Print Rows from Dateframe with Integer Index 🗃
11-
Print 10 Rows from Dateframe with Integer Index from 10-20. (Method .iloc[from:to])
10+
## Print Rows from a Dateframe using an Integer Index 🗃
11+
Print 10 Rows from a Dateframe using an Integer Index from 10-20. (Method .iloc[from:to])
1212
```
1313
import pandas as pd
1414
1515
df = pd.read_csv("new_york_city.csv")
1616
17-
# Print 10 Rows from Dateframe with Integer Index from 10-20
17+
# Print 10 Rows from Dateframe using an Integer Index from 10-20
1818
1919
print(df.iloc[10:20])
2020
```
21+
22+
## Print the first Rows from a Dateframe 🗃
23+
Print the first 10 Rows from a Dateframe. (Method .head(10))
24+
```
25+
import pandas as pd
26+
27+
df = pd.read_csv("new_york_city.csv")
28+
29+
# Print the first 10 Rows from the Dateframe
30+
31+
print(df.head(10))
32+
```

0 commit comments

Comments
 (0)