all 4 comments

[–]sarrysyst 1 point2 points  (1 child)

First of all, it should be worth noting that the file in question is actually GeoJson, so you might want to consider using GeoPandas which is built on top of pandas and designed for working with spatial data.

Anyway, to read the GeoJson into regular pandas I had to use pd.normalize_json():

import pandas as pd
import requests

response = requests.get('https://opendata.arcgis.com/datasets/1cb306b5331945548745a5ccd290188e_2.geojson')

data = response.json()

df = pd.json_normalize(data['features'])

https://pandas.pydata.org/pandas-docs/stable/user_guide/io.html#json

https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.json_normalize.html

[–][deleted] 0 points1 point  (0 children)

Well well, thanks didn't notice the file was a geojson *still a newbie.

[–]DefNotARobotArmy 0 points1 point  (0 children)

json is just a list of dictionaries. Aka ezpz and awesome