Chartjs-How to remove quotations from a dictionary in python

2👍

You might want to concatenate the strings into floats

data_list =[]
for data in zip(range(12), keys_data):
    data = data[1]
    keys_spec = monthly_data[data]
    date_list.append(data)
    for item in keys_spec:
        if item == "1. open":
            data_list.append(keys_spec[item])
montly_year_dict = dict(zip(date_list, float(data_list))) # change it here
print(montly_year_dict)

Here is the documentation I used

Leave a comment