Created
June 20, 2018 06:25
-
-
Save hrisheekeshr/90005ca175a424f5f453d3b0315b077b to your computer and use it in GitHub Desktop.
Dataframe to json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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