Q. Hitesh wants to display the last four rows of the dataframe df and has written the following code:
df.tail()
However, the last 5 rows are being displayed. Identify the error and rewrite the correct code so that only the last 4 rows get displayed.
Answer :-
df.tail (4)
Post a Comment
You can help us by Clicking on ads. ^_^
Please do not send spam comment : )