Posts by Vasco Braga • 1 point
1 post
-
0
votes2
answers284
viewsA: Convert pandas dataframe column with string array (Python)
A way that worked properly and gets very fast was: df['liststring'] = df['lists'].apply(lambda x: x[1:-1]) The new column liststring receives the string of the existing list in df['lists'].…