Skip to content

Instantly share code, notes, and snippets.

@1Marc
Created January 18, 2017 14:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 1Marc/93bdb8638889637f310a696393235522 to your computer and use it in GitHub Desktop.
Save 1Marc/93bdb8638889637f310a696393235522 to your computer and use it in GitHub Desktop.
Data transform
Input:
{ 'Jon': { '7/2016': 11026, '8/2016': 10793, '9/2016': 5526 },
'Max': { '7/2016': 62911, '8/2016': 59902, '9/2016': 46801 },
'Phil': { '7/2016': 40233, '8/2016': 45060, '9/2016': 44902 },
'Tim': { '7/2016': 61083, '8/2016': 68584, '9/2016': 70511 }}
Output:
[ { 'Author': 'Jon, '7/2016': 11026, '8/2016': 10793, '9/2016': 5526 },
{ 'Author': 'Max', '7/2016': 62911, '8/2016': 59902, '9/2016': 46801 },
{ 'Author': 'Phil', '7/2016': 40233, '8/2016': 45060, '9/2016': 44902 },
{ 'Author': 'Tim', '7/2016': 61083, '8/2016': 68584, '9/2016': 70511 } ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment