I need help with a problem with a dataframe like this:
df = pd.DataFrame({'column_A': [[{'zone':'A', 'number':'7'}, {'zone':'B', 'number': '8'}],
[{'zone':'A', 'number':'6'}, {'zone':'E', 'number':'7'}]],
'column_B': [[{'zone':'C', 'number':'4'}], [{'zone':'D', 'number': '9'}]]})
I want to insert column_B into the column_A list so the output of the first line of column_A has to be:
[{'zone':'A', 'number':'7'}, {'zone':'B', 'number': '8'}, {'zone':'C', 'number':'4'}]
Probably is the easiest thing, I can imagine, but I find so many errors with functions like insert and the '+' command and I ran out of ideas.