I have the following code, but when I run it I receive the error: PerformanceWarning: DataFrame is highly fragmented. This is usually the result of calling fra
After you sign up, you are prompted to the login page, and after you login, you are redirected to another page that contains a form used for gathering additiona
I' using haar cascade for face detection faces_haar = face_cascade.detectMultiScale(image, scaleFactor=1.3, minNeighbors=4, minSize=(30, 30), flags=cv2.CASCADE
I am currently working on a small project that will take a user input such as "50", and convert it to a float while also placing the decimal to the left, such a
I am trying to export SQL table as multi-character delimited text file in python. I have tried using Pandas, but it is only supporting single character as delim
I have installed cmake and configured via env and after that too dlib wont install i need dlib because i want to install face-recagation complete logs are here
array([1500, 1520, 1540, 1590, 1590, 1600, 1600, 1560, 1560, 1560, 1580, 1520, 1460, 1510, 1520, 1320, 1320, 1300, 1300, 1320, 1320, 1320, 132
I've just started learn python and my discord bot won't go online. it just said " Process exit with exit code 0". And there's no error with the code. here's my
I got this script import os shutdown = input("Do you wish to shutdown your computer ? (yes / no): ") if shutdown == 'no': exit() else: os
I understand that if the variable was declared outside of the function, it should be marked as global. But what about this case? Is it safe to do something like
I'm trying to find a file descriptor leak in python code with valgrind but the backtraces look like this: ==2169309== Open file descriptor 11: ==2169309== at
import torch.multiprocessing as mp import torch import time class test(): def __init__(self,X,Y): self.X=X #.share_memory_() self.Y=Y
When running a python script with selenium and chrome driver I am getting the error below. I use the script in question for some a pretty simple automation runn
I want to plot these 4 time series through the seaborn Library in Python: Thank you for your help totalcc=[cluster_center_1 ,cluster_center_2 ,clus
I would like to have a line connecting the medians or means of my boxplots. I use matplotlib. Is there any way to achieve this easily? import
The problem I am trying to solve is go through a list. In this list, if there is the letter "a", give me all those words. Once I have done that, pose the same
I have two xlsx files that have multiple tabs. I need to compare values in each tab based on the tab name. (e.g. sheet1 in file1 needs to be compared with sheet
I have a pandas series with string indices and integer values: (My actual series has >1000 entries) Count apple 1 bear 2 cat 3 Apple 10 pig 20 Cat 30 ApPl
I need to run a python script using sbatch / slurm The script works until the step which it must use the ptemcee (i.e. runs a monte carlo markov chain). In this
I'm facing a problem with different linear models from scikit-learn. There is my code from sklearn.linear_model import LinearRegression reg = LinearRegression()