Given a Pandas series called marks, the command which will display the last 3 rows is _____
(i) print(marks.tail(3))
(ii) print(marks.tails(3))
(iii) print(marks.TAIL(3))
(iv) print(marks.TAILS(3))
Answers
Answered by
16
Given a Pandas series called marks, the command which will display the last 3 rows is print(marks.tail(3))
Explanation:
df.tail(n) returns the last n number of rows in a dataframe.
Answered by
0
Answer:
Pandas series is known as marks, the command that will display the last 3 rows is print(marks.tail(3)).
Explanation:
A Pandas Series is like a column in a table.
It is a one-dimensional array containing data of any type.
It can hold data such as strings, integers and even other Python objects.
df.tail(n) returns the last n number of rows in a data frame.
Similar questions