skip to Main Content

Trouble converting dataframe to json

I have the following dataframe: 2023-06-30 2022-06-30 2021-06-30 2020-06-30 Ordinary Shares Number 7432000000.0 7464000000.0 7519000000.0 7571000000.0 Share Issued 7432000000.0 7464000000.0 7519000000.0 7571000000.0 Net Debt 12533000000.0 35850000000.0 43922000000.0 49751000000.0 Total Debt 59965000000.0 61270000000.0 67775000000.0 70998000000.0 Tangible Book Value 128971000000.0 87720000000.0 84477000000.0…

VIEW QUESTION

Json – TypeError: string indices must be intergers

This is the code that is running in app.py @app.route("/", subdomain="dev") def devhome(): with open("D:/moviewebsite/movielist.json", "r") as f: movielist = json.load(f) goodmovies = [] for item in movielist: if str(item["link"])[-4:] == ".mp4": goodmovies.append(item) else: return render_template("devHome.html", movielist=goodmovies) This is a…

VIEW QUESTION

Azure – Terraform iterating a json file for key value pairs

I have an appconfig.json file which contains the key value details for the azure app config. sample appConfig.json : [ { "contentType": "", "key": "FuncApp:Ihub:Common:D365Api:JobStatusRelativePath", "tags": { }, "value": "/api/connector/jobstatus" }, { "contentType": "application/vnd.microsoft.appconfig.keyvaultref+json;charset=utf-8", "key": "secretName", "label": null, "tags": {…

VIEW QUESTION
Back To Top
Search