Articles → Pandas → Head() Function In Pandas

Head() Function In Pandas






Purpose





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


Picture showing the output of head() function in pandas
Click to Enlarge


Posted By  -  Karan Gupta
 
Posted On  -  Friday, May 10, 2019

Query/Feedback


Your Email Id
 
Subject
 
Query/FeedbackCharacters remaining 250