how to turn pandas series into list code example
Example 1: pandas to list
df.values.tolist()
Example 2: pandas series to list
lst = data.tolist() # data is pandas series
df.values.tolist()
lst = data.tolist() # data is pandas series