'Importing Excel list where every cell is a individual List python, 2d to 3d list
I have a CSV Excel file with a lot of rows. When I import it with csv.reader it converts it into a 2D-List where every Row is a single list. How do you break open those and convert every cell to a single list.
My Input:
[['1;2;3'],['Hello;How;areyou'],['test;1;2'],['4;5;6']]
aspired output:
[[[1],[2],[3]],[[Hello],[How],[areyou]],[[test],[1],[2]],[[4],[5],[6]]]
sorry if this question has been asked a lot, but i dont really find a solution for me.
Edit: There is something else I didnt notice when I looked in at the output. It is a 2D list and the items in the nested list are saved between highcommata like: [['1;2;3']]
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
