Learn practical skills, build real-world projects, and advance your career

Literacy rate Analysis using Pandas-matplot-seaborn

import pandas as pd
literacy_df=pd.read_csv('Literacy Data 2011.csv',index_col=0)

Data Preparation and Cleaning

The pd.read_csv() function is well-endowed, with over 30 optional parameters you can specify. For example, you can see in this dataset that the CSV file has a built-in index, which pandas did not pick up on automatically. To make pandas use that column for the index (instead of creating a new one from scratch), we can specify an index_col.
literacy_df=pd.read_csv('Literacy Data 2011.csv',index_col=0)