Practical Implementation of Properties of Series in Pandas
Get Job-Ready: Data Analysis using Python with 70+ 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 we exceed your expectations?
If Yes, share your valuable feedback on Google

