Note

Pandas (5) 본문

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

'Pandas' 카테고리의 다른 글

Pandas (7)  (0) 2022.07.27
Pandas (6)  (0) 2022.07.26
Pandas (4)  (0) 2022.07.24
Pandas (3)  (0) 2022.07.20
Pandas (2)  (0) 2022.07.19
Comments