I have the following statement to compute the mean of three quiz scores and create a new column based on the computed mean: scores.loc[:, 'Ave
I would like to send multiple images to FastAPI backend using Python requests. Server side from fastapi import FastAPI, UploadFile, File from typing import List
I am plotting a bar graph in python in the following manner: # importing package import matplotlib.pyplot as plt import pandas as pd # create data df = pd.Da
I have a problem. I want to calculate everything in the quadratic function. equations for reference: ax^2 + bx + c a(x-p)^2 + q I made 8 possible inputs in tki
I'm trying to learn Python and I have run into a problem. I am attempting to complete the Array Manipulation challenge on hackerrank. A part of solving it requi
I have a dataframe: val1 val2 val3 a b 10 a b 2 b a 3 f k 5 f k 2 when i do df.groupby(["val1", "val
Hello I'm trying to block the main until all the threads are done. Apparently even by executing the .join() method, the main sometime doesn't wait all the threa
In Microsoft Teams, the status changes to "away" after a while being inactive. Is there any way in Python to keep it active all the time?
Can anyone explain the following: I have 2 scripts for loading a pandas dataframe in a tableview which has a filter field. The one with the standard model loads
For example, I have 2 columns(1,2), and in table 2 I want to fetch everything until " character. I wanted to do something like this: df.columns = ['1','2'] a =
import cv2 import numpy as np # Load image, grayscale, Gaussian blur, Otsu's threshold image = cv2.imread('1.png') gray = cv2.cvtColor(image, cv2.COLOR_BGR2GRA
I was working on a project where I have to update jira issue fields like components , epic links,etc. I am using jira python client(https://pypi.org/project/jir
I have created a telegram bot that sends screenshots of the browser webpage. I have used python-selenium package in order to connect browser with telegram-bot b
I want to have a Class with only one argument to it. Based on that argument a couple of calculations should take place aiming at setting a specific attribute fo
I've been developing a fastapi way to query my database, instead of directly using SQL with pg. For some reason, I'm having issues converting the ORM query retu
I want to retrieve the data after every episode, I've read the documentation that you can use, stable_baselines3.common.monitor.ResultsWriter but I don't know h
I am trying to get IMU data from D435i camera but unable to do so. Browsing various github issues, I got the code snippet which is straight forward but for some
Hello stack overflow users, I am trying to achieve mass-locking/unlocking channels in this coding language. The commands return no error, but it doesn't lock al
I am following these docs to try and do random word insertion: https://nlpaug.readthedocs.io/en/latest/augmenter/word/word_embs.html However when simply trying
I would like to remove the dots within a word, such that a.b.c.d becomes abcd, But under some conditions: There should be at least 2 dots within the word, For e