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)

 

Your 15 seconds will encourage us to work even harder
Please share your happy experience on Google

courses

TechVidvan Team

TechVidvan Team provides high-quality content & courses on AI, ML, Data Science, Data Engineering, Data Analytics, programming, Python, DSA, Android, Flutter, full stack web dev, MERN, and many latest technology.

Leave a Reply

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