File tree Expand file tree Collapse file tree 1 file changed +15
-3
lines changed
Expand file tree Collapse file tree 1 file changed +15
-3
lines changed Original file line number Diff line number Diff line change @@ -7,14 +7,26 @@ The easiest way to install Pandas is with pip. Type in your console:
77pip 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```
1313import pandas as pd
1414
1515df = 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
1919print(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+ ```
You can’t perform that action at this time.
0 commit comments