Good day,
from one of our clients we're getting csv-exports that are looking something like this:
id | name | object_a | amount_a | object_b | amount_b | object_c | amount_c
1 abc object_1 12 none none none none
id | name | object_a | amount_a | object_b | amount_b | object_c | amount_c
2 def object_2 7 object_3 19 none none
id | name | object_a | amount_a | object_b | amount_b | object_c | amount_c
3 ghi object_4 25 none none none none
Now I really only care for the pair of objects (object-name and amount). In each set of data the max number of pairs are always the same, but they are randomly filled. My question: is it possible to load them all into a dataframe and convert them into something like this:
object | amount
object_1 12
object_2 7
object_3 19
object_4 25
Loading all these csv-exports into a single dataframe isn't the problem, but does panda contains a solution for this kind of problem?
Thanks for all your help!