I have problem with requests package. In past requests was working, but today for no reason it stopped working. I am just importing requests and it cause error.
Need to remove a particular file of size 0 from directory, can anyone help me on that? The code i have tried is for f in source_images: file_path = os.pat
I have some data on Elasticsearch and retrieve data using Fastapi GET call. i used below code to GET data from Elasticsearch main.py @app.get("/get_all") def ge
I keep getting this error after entering pip install pyscf pi@node0:~ $ pip install pyscf Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/
I have a code that contains a variable that I want to change manually when I want without stopping the main loop neither pause it (with input()). I can't find a
Django bootstrap modal form works when i create new data gets populated and pop up closes automatically without refresh but when updating success message appear
I am trying to rewrite an 32bit Matlab-script in Python. For this I need to include a dll, which I am trying to do with ctypes. Somehow the Python script does f
I have a major problem with XAI, Shap, Lime you name it in general. Here is a basic example for shap. My problem is that when I use a real tuned model, which is
I have a major problem with XAI, Shap, Lime you name it in general. Here is a basic example for shap. My problem is that when I use a real tuned model, which is
I'm learning about using APIs in Python, so I'm trying to get a list of users from a Slack workspace that I'm the owner of. I don't get any errors or even any w
I have the following code in Python 3: class Position: def __init__(self, x: int, y: int): self.x = x self.y = y def __add__(self, oth
Today I realised this .pyw file was added into my startup files. Though I already deleted it, I suspect what it may have initially done to my computer, but it's
I would like to POST JSON and File data together, as shown in the code below: fastapi.py @router.post('/rate') def users(user_review:schemas.Rate, image123: Upl
I was reading the book - "Python for Data Analysis" and doing code side-by-side on Jupiter notebook. Here is my DataFrame named data : one t
I'm writing code that has to take a bunch of floats in Python and convert them to decimals without any rounding errors but with as much precision as possible. I
I am trying to access elements from the nested lists. For example, file = [["Name","Age","Medal","Location"],["Jack","31","Gold","China"],["Jim","29","Silver","
key_word = ["apple","Apple","Boy","boy"] title1 = "Where the boy" title2 = "The Boy playing cricket" title3 = "hello world" title4 = "I want to buy apple vine
My company is consuming an API that will give us large JSON objects. The API response info may be in dif fields based on query parameters (it's a 3rd party aggr
I got this error increment = lambda x : x + 1 def make_repeater(h, n): def f(x): value = x while n > 0 : value = h(value)
Hi this is my giveaway bot command, currently, I am using reactions in it but I want to replace it with buttons like someone clicks on the button then participa