setting a name

marks = [70,80,45]
subject = ['Bangla','English','Math']
pd.Series(marks,index=subject,name='olee marks sheet')

Output :

Bangla     70
English    80
Math       45
Name: olee marks sheet, dtype: int64

Last updated