I am getting json response from a site
response = requests.get(API_URL, params=data)
response_json = response.json()
a = response_json['Time Series (5min)']
print(a)
Output:
{
'2021-02-19 18:45:00': {'1. open': '119.1800', '2. high': '119.1800', '3. low': '119.1800', '4. close': '119.1800', '5. volume': '1250'},
'2021-02-19 18:25:00': {'1. open': '119.1000', '2. high': '119.1000', '3. low': '119.1000', '4. close': '119.1000', '5. volume': '701'} ... }
Than i am trying to convert it to dataframe:
data = pd.json_normalize(data=a)
print(data)
But in the result i have 1 row with lots of columns.

So how should i convert it to get table with datetime as index and keys in JSON as columns?
pd.DataFrame.from_dict(a, orient='index')