Data cleaning in Pandas, where the csv file has all data of each row in 1 field
I have really messy data that looks like this:
As you can see all the data in each row is contained in 1 column separated by a semi colon.
How do I arrange this data so that they are spread out over more columns? For example, category_id
, category_id_lvl_0
etc., to be in separate columns and the rows underneath corresponding to that columns i.e ones that are separated by the semi colon to fall under the column of category_id
, category_id_lvl_0
...
Topic data-wrangling data-cleaning
Category Data Science