I want to access the json file and convert to it dataframe but show's invalid argument.
import json
import pandas as pd
a='https://power.larc.nasa.gov/api/temporal/daily/point?parameters=WS10M_MAX&community=RE&longitude=85.1500&latitude=25.6100&start=20210101&end=20210331&format=JSON'
data = json.load(open(a))
df = pd.DataFrame(data)
Error is-
OSError: [Errno 22] Invalid argument: 'https://power.larc.nasa.gov/api/temporal/daily/point?parameters=WS10M_MAX&community=RE&longitude=85.1500&latitude=25.6100&start=20210101&end=20210331&format=JSON'
source https://stackoverflow.com/questions/70511747/how-to-access-json-file-in-jupyter
Comments
Post a Comment