I expect the final DataFrame to have the below structure:
col_a, col_b, col_c, col_d, col_e
However based on the data pulled from the API, I see the below columns having data
col_a, col_c, col_d
This results in a Keyerror as col_b
and col_e
are not in the data obtained from the API. Is there a way I can create empty columns if there is no data available based on the data obtained from the API.