Create a series of first six even values and then display the first three values and the last two values using head() and tail() function
Answers
Answered by
0
Answer:
Series with many rows, head() and tail() methods that return the first and last n ... Get rows by specifying row numbers: slice; Get values of first / last row ... print(df.head(3)) # sepal_length sepal_width petal_length ... If you specify n=1 in head() or tail() , you can get the first or last row, but even if only one row.
Similar questions
Science,
3 months ago
Social Sciences,
3 months ago
Art,
3 months ago
Math,
6 months ago
English,
6 months ago
English,
10 months ago
English,
10 months ago
Social Sciences,
10 months ago