I currently have a Julia dataframe of the form
| A | B |
|---|---|
| "[1,2]" | "[3,4]" |
and would like to make it of the form
| A1 | A2 | B1 | B2 |
|---|---|---|---|
| 1 | 2 | 3 | 4 |
or of the form (where the vectors are no longer strings).
| A | B | |---|---| |[1,2]|[3,4]| is there any way to do this? I have already looked at a few posts where people try to convert vectors of the form ["1", "2"] to the form [1,2] but nothing along the lines of what I have.
Thanks for the help.
Here is an example way how you can do it:
If something requires an explanation please ask in the comment.