Articles → Pandas → Info Method In Dataframe In Pandas

Info Method In Dataframe In Pandas






Purpose





Example


import pandas as pd

list = [[1,21,3], [1,5,6], [7, 8,9]]

df = pd.DataFrame(list, columns=['col1','col2','col3'])

print(df.info())

Output


Picture showing the output of the info method in dataframe in pandas
Click to Enlarge


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

Query/Feedback


Your Email Id
 
Subject
 
Query/FeedbackCharacters remaining 250