Applying conditional statements on lists stored in Dataframe cell
I would like to create a column that is the result of boolean logic of list stored in other column. import pandas as pd import numpy as np d = {‘202201’: [7180516.0, 4868058.0], ‘202202’: [433433740.0, 452632806.0], ‘202203’: [5444119.0, 10000000.0]} df = pd.DataFrame(data=d) #Storing Values in List df[‘seq’] = df.agg(list, axis=1) #Or #df[‘seq’] = df.agg(np.array, axis=1)… Read More Applying conditional statements on lists stored in Dataframe cell