title: displaying json dict of a list of dictionaries in a csv file python
body: <pre><code>df =pd.DataFrame(eval(res))
  print(df.head())
  df.to_csv('data.csv',index=False)
  </code></pre>
  <p>This is my code to convert the data i need to a csv file but because the data is a dictionary, of a list of rougly 70 other dictionaries i can't get the format the way i want.
  <a href="https://i.stack.imgur.com/fqLke.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/fqLke.png" alt="enter image description here" /></a>
  here i want timestamp to be my first column and then each key after that to be another column with the prices/volume at each unix timestep. How can i modify my code to achieve this? I dont need the data column.</p>