I have managed to pull a list from a data source. The list elements are formatted like this (note the first number is NOT the index):
0 cheese 100
1 cheddar cheese 1100
2 gorgonzola 1300
3 smoked cheese 200
etc.
This means when printed, one line contains "0 cheese 100", with all the spaces.
What I would like to do is parse each entry to divide it into two lists. I don't need the first number. Instead, I want the cheese type and the number after.
For instance:
cheese
cheddar cheese
gorgonzola
smoked cheese
and:
100
1100
1300
200
The ultimate goal is to be able to attribute the two lists to columns in a pd.DataFrame so they can be processed in their own individual way.
Any help is much appreciated.