title: Convert API call into a csv file with selected attributes in columns
body: <p>I have access public API data by given below link.</p>
  
  <pre><code>import json,urllib
  import csv
  data = urllib.urlopen("https://earthquake.usgs.gov/fdsnws/event/1/query?format=geojson&amp;starttime=2016-10-01&amp;endtime=2016-10-02").read()
  output = json.loads(data)
  print (output)
  </code></pre>
  
  <p>need help to put the obtained data into a csv file. With Following attributes should be the columns in the csv file:<br>
  •   Latitude (Hint: Treat, the first entry in coordinates attribute as Lat)<br>
  •   Longitude (Hint: Treat, the second entry in the coordinates attribute as Longitude)<br>
  •   Title : This should include the Earthquake description<br>
  •   Place: The location of the Earthquake<br>
  •   Mag: Magnitude of the earthquake  </p>
  
  <p>And then to convert into Pandas dataframe</p>