This is my dataset:
| 0 | 1 | 2 |
|---|---|---|
| {'sequence': 1, 'timingDate': '2022-01-07', 'c... | {'sequence': 2, 'category.coding': [{'code' | {'sequence': 3, 'category.coding': [{'code': |
I am able to do this individually; however, this take a long time. A loop would be more efficient. There is actually 0-15 columns that need to be applied
Essentially this what the loop should do.
one_st = sI[0].apply(pd.Series)
two_st = sI[1].apply(pd.Series)
three_st = sI[2].apply(pd.Series)
# and so on through column 15
This is my code.
sI = pd.json_normalize(df30['supportingInfo'])
for i in range(len(sI)):
sI[i].apply(pd.Series)
My error is this:
KeyError: 13