Practical Implementation of Properties of Series in Pandas

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

Program 1

import pandas as pd
mylist=[10,20,30,40,50,60]
sr=pd.Series(mylist,index=['a','b','c','d','e','f'],name="Number Series")
print(sr)
# print(sr.name)
# print("Size of Series is ",sr.size)
#print(sr.values)
#print(sr.empty)
# print(sr.ndim)
#print(sr.memory_usage())
#print(sr.nbytes)
#print(sr.shape)
myar=sr.array
print("This is Array")
print(myar)

 

Did you like our efforts? If Yes, please give DataFlair 5 Stars on Google

follow dataflair on YouTube

Leave a Reply

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