How to create lists from pandas columns
How to create lists from pandas columns Question: I have created a pandas dataframe using this code: import numpy as np import pandas as pd ds = {‘col1’: [1,2,3,3,3,6,7,8,9,10]} df = pd.DataFrame(data=ds) The dataframe looks like this: print(df) col1 0 1 1 2 2 3 3 3 4 3 5 6 6 7 7 8 …