data2.category
>>>
437624 [16]
437625 [23]
437627 [23]
437628 [9, 0, 23, 10]
437629 [19, 20, 23]
...
tolist = data2.category.tolist()
tolist = sum(tolist, [])
>>>
[16, 23, 23, 0, 9, ...]
'Basic Python > Workbook' 카테고리의 다른 글
Latitude VS Longitude (0) | 2023.06.05 |
---|---|
How to get Hydra config without using @hydra.main() (0) | 2022.11.24 |
How to preprocess the article to be neat with Regular Expression (0) | 2022.11.24 |
Seperate 2D array to nested list (0) | 2022.05.16 |