issues
search
oldoc63
/
learningDS
Learning DS with Codecademy and Books
0
stars
0
forks
source link
Selecting Multiple Rows
#375
Open
oldoc63
opened
2 years ago
oldoc63
commented
2 years ago
You can also select multiple rows from a DataFrame.
df.iloc[3:6] would select all rows starting a the 3rd and up to but not including the 6th row.
df.iloc[:4] would select all rows up to, but not including the 4th row
df.iloc[-3:] would select the rows starting at the 3rd to last row and up to, including the final row.
You can also select multiple rows from a DataFrame.