SyntaxFix
Write A Post
Hire A Developer
Questions
You can use pandas.Series.tolist
pandas.Series.tolist
e.g.:
import pandas as pd df = pd.DataFrame({'a':[1,2,3], 'b':[4,5,6]})
Run:
>>> df['a'].tolist()
You will get
>>> [1, 2, 3]