Skip to content

Instantly share code, notes, and snippets.

@hrisheekeshr
Created June 20, 2018 06:25
Show Gist options
  • Save hrisheekeshr/90005ca175a424f5f453d3b0315b077b to your computer and use it in GitHub Desktop.
Save hrisheekeshr/90005ca175a424f5f453d3b0315b077b to your computer and use it in GitHub Desktop.
Dataframe to json
def create_configurations(dataframe_object):
dct = player_config1.to_dict(orient='records')
configurations = {}
for item in dct:
configurations[item['Key']] = item['Value']
return configurations
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment