Articles → Pandas → Head() Function In PandasHead() Function In PandasIn this article, we will discuss about head() function in pandas.Purpose Head() returns top n (5 by default) rows of a data frame or series.Example import pandas as pd table = pd.read_html( "https://www.fnb.co.za/Controller?nav=rates.forex.list.ForexRatesList" ) table[1].head(10)Output Click to EnlargePosted By - Karan Gupta Posted On - Friday, May 10, 2019 Query/Feedback Your Email Id Subject Query/Feedback Characters remaining 250
import pandas as pd table = pd.read_html( "https://www.fnb.co.za/Controller?nav=rates.forex.list.ForexRatesList" ) table[1].head(10)
Query/Feedback