I have the below code that seems to be taking a while to run over time.
info_participants = info['participants']
for participant in info_participants:
info_gamestatistics_table = flatdict.FlatDict(participant, delimiter='_')
info_gamestatistics_table = dict(info_gamestatistics_table)
info_gamestatistics_df = info_gamestatistics_df.append(info_gamestatistics_table, ignore_index=True)
info participants is a list of json objects.
I'm flattening a json object, turning the output to a dict, and adding it to my dataframe using the df.append() method, and I'm doing that for each participant (10).
Is there a faster way to do this?