Pandas

Pandas (5)

Jun's N 2022. 7. 25. 20:43

How to assign name to the series’ index?

# Input
ser = pd.Series(list('abcedfghijklmnopqrstuvwxyz'))

# Solution
ser.name = 'alphabets'
ser.head()

 

728x90