Using google.cloud.firestore_v1.client.Client to work with firebase database when intertacting with it after a while of non interaction i get : google.api_core
I'm using K-Means algorithm (in sklearn) to cluster 1-D array of values, and I want to decide the optimal number of clusters (K) in my script. I'm familiar with
I'm following this tutorial to create a discord bot with a dashboard but when I run my bot.py file I'm getting an error. What am I doing wrong? bot.py: import d
I have read and tested different things but didn't found a solution. Maybe I have to live with the boilerplate, but I am not yet done trying it. I have the foll
I need to calculate XNPV of cash flows at different future dates. Is there any function to do this in numpy, pandas or plain python? Consider a dataframe like s
I am creating a GUI using tkinter in python and I want to print the date of what the user had selected using dateEntry. Here is what my code looks like: import
Hi my gorgeous friend on the Internet, I have a question about how to plot a Chart in Altair. I have been struggling with this error since yesterday and still h
I am trying to install pyodbc with pip on macOS(12.3.1), but that didn't work. In error log, Message says "fatal error: 'sql.h' file not found". Some people are
I have created API for News model: models.py class News(models.Model): title = models.CharField(max_length=255) created_at = models.DateTimeField(auto_n
I was trying to simulate a square wave with a duty cycle but something went wrong and i've been spending the last 3 hours understandig why. Here are the picture
How can I create two matrixes without numpy as A and B(can also do these operations)? import numpy as np A = np.random.randint(-9, 9, size=(5, 5)) B = np.rando
There is the following code inside a Node.js project: Soon.app = initializeApp({ apiKey: "AIzaSyB4fcG8rtNWAiAtSmxmK3q3JLfMvtNCGP4", projectId: "soonaverse"
I have the following code where function_1 and function_2 runs independently. However, I want the script to complete once function_2 is complete. import asyncio
I am trying to access Binance Vanilla Futures data by using [this code][1] as a framework to better understand how to get the data. However, when I input my API
I am just starting to learn python and getting an error message that the syntax for calling calculator is wrong. Does anyone have any suggestions? My code: impo
I am trying to install the geoviews module. I installed it successfully but when I am trying to import it in my code I have this message: No module named 'chann
I'm trying to reshape an array of bitmap images that has a shape of (50,50,90000). How can I modify it so that I can get an array of (90000,50,50)? - I tried ar
I'm trying to simplify this: urls = [] soup = BeautifulSoup(r.text, "html.parser") items = soup.select('.mydiv a') for item in items: url = item['href']
if I have a pandas dataframe with a description of an issue, how can I split each value into two separate words at a time? e.g Subject Number Issue 30493 "This
I am trying to extract all the texts in span into list, using the following HTML code from Selenium webdriver method: ['1a', '1b', '1c', '2a', ' ', ' ', '3a', '