Computer Science, asked by yasinshah7730, 6 months ago

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 indujajeevanaschool
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