Skip to content

Instantly share code, notes, and snippets.

@zsrinivas
Forked from d30jeff/test.py
Last active August 29, 2015 14:23
Show Gist options
  • Save zsrinivas/2c15cfcfb0988c0bb2ef to your computer and use it in GitHub Desktop.
Save zsrinivas/2c15cfcfb0988c0bb2ef to your computer and use it in GitHub Desktop.
items = ['name', 'flowrate', 'temperature', 'power', 'log_time', 'created_on']
csv_data = reduce(add, map(lambda x: reduce(add, map(str, map(x.get, items))), json_format))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment