skip to Main Content

Json – How to make a column from Pandas a variable?

So I have this fine code: import pandas as pd import requests from datetime import datetime now = datetime.now() dt_string = now.strftime("%Y-%m-%dT%H:00:00") url = 'https://api.energidataservice.dk/dataset/Elspotprices?filter={%22PriceArea%22:[%22DK1%22]}&limit=50' r = requests.get(url) json = r.json() # HourUTC HourDK SpotPriceDKK SpotPriceEUR df = pd.DataFrame(json['records']) df2…

VIEW QUESTION

Converting JSON Dictionary to Dataframe

I am relatively new to JSON and after going through several tutorials I have decided to reach out here for additional advice. I am trying to convert the following JSON dictionary via Jupyternotebook/Pandas into a dataframe and later into a…

VIEW QUESTION
Back To Top
Search