Computer Science, asked by pinky9672, 6 months ago

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 jai696
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.

\large\mathsf\color{lightgreen}useful?\: \color{white}\longrightarrow\: \color{orange}brainliest!

Answered by ritikkumar269
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.

\large\mathsf\color{lightgreen}useful?\: \color{white}\longrightarrow\: \color{orange}brainliest!

Similar questions