Question:
i have a data frame that looks like this:
Although the items in Column1 look like lists of items, they are strings. I want to remove the square brackets from this string, remove the quotes and replace all values in that column with the same values but as comma separated strings. My desired output would be:
I tried the following function but it does not replace the elements:
Can anyone help me with this? Thanks in advance.
Answer:
As desired, one of the options to convert a string in the mold of a list into a real list to separate the values by comma is:
Output:
Greetings from Brazil!
If you have better answer, please add a comment about this, thank you!