I have column with lists in a dataframe. I want to just remove the square brackets:
| Fruits |
| -------------------------------------|
| [apple, kiwi, pineapple, mango, lime]|
| [strawberry, cherry, kiwi, orange] |
| [...] |
Desired Output:
| Fruits |
| -----------------------------------|
| apple, kiwi, pineapple, mango, lime|
| strawberry, cherry, kiwi, orange |
| ... |
I have tried this
for fruit in df['Fruits']:
df['Fruits'] = (','.join(word))
print(df['Fruits'])
The output is not what I want, and how can I append the new list to a new column (of course without the need of square brackets) anyone can help?