Untitled

From Reliable Mockingbird, 10 Months ago, written in Plain Text, viewed 134 times.
URL http://codebin.org/view/031c55c5 Embed
Download Paste or View Raw
  1. import requests
  2. state_geo = 'https://code.s3.yandex.net/data-analyst/admin_level_geomap.geojson'
  3. response = requests.get(state_geo)
  4. geo_json_data = response.json()
  5. district_names_json = [feature['properties']['name'] for feature in geo_json_data['features']]
  6. district_names_json

Reply to "Untitled"

Here you can reply to the paste above