Iam trying to sum a column inside a dataFrame that is a set of int.
something like : ['xxxx',{1,2,3}] and i need ['xxxx',6]
Thanks for your help.
for index,row in df_clusters.iterrows():
if isinstance(row['sum_coefs'],set):
row.loc['sum_coefs']=sum(row['sum_coefs'])
I got at the output an unchanged Dataframe with a set in my sum_coefs column and not the sum.