Thursday 11 March 2021

Class 12 IP Practical - 09

 

#9. Create a Series using dictionary.


import pandas as pd

emp={'Id':101,'Name':'Ram','Salary':25000,'Age':25}

S=pd.Series(emp)

print(S)




========= RESTART: C:/Program Files (x86)/Python38-32/IP-6.py =========

Id          101

Name        Ram

Salary    25000

Age          25

dtype: object

>>> 

 


No comments:

Post a Comment