title: How to fit output data into dataframe in python?
body: <p>Following code gives the name of cities. Now, I want to fit that output data into pandas dataframe.</p>
  
  <p>Python Jupyter Notebook 3+</p>
  
  <pre><code>import geoip2.database
  reader = geoip2.database.Reader('F:/GeoLite2-City_20190305/GeoLite2-City.mmdb')
  
  for user in data:
      try:
          reader.city(user[1]).city.names["en"]
      except KeyError:
          print(user[1],"  No City")
      else:
          print(user[1],"  ",reader.city(user[1]).city.names["en"])
  </code></pre>
  
  <p>I want output as
  e.g.</p>
  
  <pre><code>ip         city
  
  12345       Ohio
  </code></pre>