+ 1

python pandas

I need some explanation for head() method in pandas

18th Sep 2017, 12:35 PM
Abdelrahman Hamoda
Abdelrahman Hamoda - avatar
2 Respostas
+ 2
Complete the code to inspect the first five rows of the DataFrame boston: boston.head(n = 5)
21st Nov 2020, 4:36 AM
Jason Chew
Jason Chew - avatar
0
It is used to display the first n rows (default value = 5) of a dataframe. This method is useful when you want to preview only a few select rows of a huge dataset. Check out the official documentation: https://pandas.pydata.org/pandas-docs/stable/generated/pandas.DataFrame.head.html
19th Sep 2017, 6:28 AM
Kredy