python turn list into pandas series code example Example: pandas series to list lst = data.tolist() # data is pandas series