๋ฐ์ํ
to_list() ์ฌ์ฉ
>>> idx = pd.Index([1, 2, 3])
>>> idx
Index([1, 2, 3], dtype='int64')
>>> idx.to_list()
[1, 2, 3]
https://pandas.pydata.org/docs/reference/api/pandas.Index.tolist.html
๋ฐ์ํ
'Python > Pandas' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
[Pandas] Dataframe ์ ์ฒด ์ถ๋ ฅํ๊ธฐ (0) | 2023.10.18 |
---|---|
[Pandas] Dataframe ์์์ ๊ด๋ จ (0) | 2022.10.31 |
[Python] Pandas - Dataframe ํจ์ ๋ชจ์ (0) | 2021.07.26 |
[Python] Pandas - Dataframe for ๋ฌธ ์กฐํ (0) | 2021.02.16 |
[Python] Pandas - DataFrame ์ด์์น ์ ๊ฑฐ (0) | 2020.12.23 |