Practical Implementation of Pandas DataFrame Attributes

Free Pandas course with real-time projects Start Now!!

Program 1

import pandas as pd
mydata=[(101,'Vishal',9000),(102,'Amit',7000),(103,'Rajesh',8000),(104,'Vinit',8000)]
df=pd.DataFrame(mydata,index=['a''b''c''d'],columns=['A','B','C'])
#print(df.size)
#print(df.ndim)
#print(df.shape)
#print(df.values)
#print(df.memory_usage())

 

Did you know we work 24x7 to provide you best tutorials
Please encourage us - write a review on Google

follow dataflair on YouTube

Leave a Reply

Your email address will not be published. Required fields are marked *