I am trying to make pie charts where some of the wedges have hatching and some of them don’t, based on their content. The data consists of questions and yes/no/in progress answers, as shown below in the MWE. However, instead of greenyellow and gold I am trying to make the wedges green with yellow hatchi…
Extract information from outlook with python
Good morning How can I extract a specific information from outlook with python code. Thanks in advance. Merie. Answer While this is an extremely broad question, I would recommend looking here: https://learn.microsoft.com/en-us/outlook/rest/get-started This should have some of the basic stuff to get you starte…
Python>Finding key based on values within a list, from a dictionary
i am using a dict like below and i want a function preferably which returns the key value, based on the value user provides. Used the below function: when i use the above function as below: print(find_key_for(test-dict,’abc’)) it returns [] while i expected Name alternatively when i do (find_key_f…
Misunderstanding of global variable in Python
I would like to calculate the variable “a” by using a function and the global variable “df”. My problem is that after running the function, “df” is also altered. I just want to calculate “a” with the function, but I want that “df” stays as it is. act…
python, using seaborn or plotly to show graphs for medication points over time
I’m trying to plot my heart rate and steps against when i have coffee. The dataset is like this, Where 1 is the hour i had coffee and 2 is 4 hours after and 0 is no coffee. Currently I’m trying to plot these points out like this, But this is giving me a unreadable graph like this, I’d love
How to use a variable as dictionary key using f-string in python?
I’m trying to print dictionary item value of a dictionary but my item is also an another user input variable. How can I print the selected value with f-string? Answer
How to use bold text inside a spreadsheet using odfpy? [closed]
Closed. This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 1 year ago. Improve this question I’m writing a spreadsheet (ods) using odfpy but I can’t figure out how to make it…
Django – OperationalError after deleting migration files
In the earliest days of my system, before i knew how to utilize django’s built-in User model, i had my own class named myUser which i intended to use for the same purpose. i ended up deleting this one and instead using django’s User model. all was fine for a while. then i tried to change the id of…
Airflow DAG script print the value in logs
Actually I was passing JSON {“Column”: “ABC123”} in Airflow before triggering it and in DAG script I have written the code as below in DAG script Actually I want to print the value as 123 in Airflow logs but it is not printing in the logs…DAG runs successful but not able to print…
Why doesn’t request.GET.get(“edit”) work in my code?
I’m trying to make a view in Django, in where if the edit button is pressed on that page it is passed on to another view as a session. Here is my page.html file This is the view where I want to use the session Answer You can specify a key-value pair by making use of the <button> tag, so