Python – Json List to Pandas Dataframe

If you change this line in your function: dfItem = jsonToDataFrame(data) to:

dfItem = pd.DataFrame.from_records(data)

it should work. I tested your function with this line replaced, using [‘INAG’] as a parameter passed to your getFinanceHistoricalStockFromByma function, and it returned a DataFrame.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)