Quantcast
Browsing all 13921 articles
Browse latest View live

Unsure what happening with my terminal but I'm getting a weird response...

Whenever I run a python file, (vs code) or even open my terminal on mac I get a warning saying./Users/ABC/.zshrc:1: command not found: “alias/Users/ABC/.zshrc:2: command not found:...

View Article


SystemError: unknown opcode and model need compile errors

I am using Python 3.6 and Keras 2. I trained and saved a model in h5 format as follows:# Encoder networkinputs_x = Input(shape=input_shape_x, name='encoder_input')inputs_x_dropout =...

View Article


How to use a function as a variable value [closed]

I was trying to make a save in the game.I created a file, everything is saved in it, but there is a problem that the account is written in a file and 2 lines of code are needed, but I do not know how...

View Article

Is it possible to make regression models or time series forecast models where...

I have a small dataframe where both columns are datetime datatypes, so if I were to plot, both the x and y are datetimes.I basically want to make a model that predicts the delivery/due date of...

View Article

sqlalchemy psycopg2.errors.InsufficientPrivilege: permission denied for...

I've read over 20 different questions with the same problem - and the suggested answers didn't solve my problem. I'm still getting sqlalchemy psycopg2.errors.InsufficientPrivilege: permission denied...

View Article


Python: I need to match rows and attributes while creating a clean_data function

`I don't know how to match rows and columns and seem more lost.def clean_data(df):"""Perform feature trimming, re-encoding, and engineering for demographicsdataINPUT: Demographics DataFrameOUTPUT:...

View Article

Custom encryption algorithm in python [closed]

I have made a string encryption method, but i can't find out how to make a decryption method. My encryption function is below (in python)def encrypt(text, key):...

View Article

Using FST libraries in Python

How do I install OpenFST?I have been doing it as such:wget http://www.openfst.org/twiki/pub/FST/FstDownload/openfst-1.4.1.tar.gztar -zxvf openfst-1.4.1.tar.gzcd openfst-1.4.1./configuremakemake...

View Article


How can my UI application correctly display an image and predict if a person...

Im doing a Computer Vision project that uses deep learning for a pneumonia detector. I ran the training part with no issue but when i try to test with my UI , the application closes after i upload a...

View Article


Python select interpreter not found VS Code

I started using venvs on Visual Studio Code, and when I am trying to use pandas, by import pandasit gives me this error"Import "pandas" could not be resolved from source"So I tried to use ctrl+shift+p...

View Article

Is there a Python equivalent to JavaScript's requestAnimationFrame()?

In JavaScript, there is a function window.requestAnimationFrame(). This function allows you to run a callback function every time the screen is about to updated.I want to use a similar function in...

View Article

How to compile a Python package to a dll

Well, I have a Python package. I need to compile it as dll before distribute it in a way easily importable. How? You may suggest that *.pyc. But I read somewhere any *.pyc can be easily...

View Article

Repeating values on recursive sudoku solver in python [closed]

I'm trying to make a sudoku solver using recursion by storing possible values in a dictionary with index as key and the set of possible values as value.Parameter b is just the board expressed as a...

View Article


VirusTotal false positive? [closed]

I built a python script that is supposed to be an auto fishing bot for a game. I compiled it to one file without an icon. It uses image recognition from PyAutoGUI and OpenCV to simulate key presses /...

View Article

Why python-telegram-bot is not working with celery?

I tried to use python-telegram-bot but it was not working while when I tried to use it out of celery asyncio with asds it was working wellWhat is wrong with this code runing python-telegram-bot with...

View Article


The resize() function doesn't resize my image

imageopen = Image.open("logo.png")imageopen = imageopen.resize((1000,1000), Image.LANCZOS)frame = ctk.CTkFrame(master=root)frame.pack(pady=20, padx=60, fill="both", expand="True")image =...

View Article

Lambda in Apply

Suppose I have 10 columns and I would like to divide each column with the the previous column using apply and lambda. This is my codedf.apply(lambda x: df.iloc[:,x+1]/df.iloc[:,x])But got the error...

View Article


How to specify a pyparsing expression that has two parts, the length of each...

I need to specify an expression that is defined as ambn, such that:m+n = t; t is fixed0 <= m<= t - 11 <= n<= tHere's how the current code looks like, simplified:from pyparsing import Char,...

View Article

Installing python packages on HDInsight on-demand cluster via Azure...

How to install packages which are not available when a Spark script is written and run using on-demand HDinsight cluster via Azure Data Factory ADF ?There is an old question here but it wasn't...

View Article

How to extract the skeletal movements from mediapipe pose detection program...

so i was working with OpenCV pose detection and I used mediapipe for that now i want to remove my video and only export the skeleton that has detected my pose in form of a videoi tried using OpenCV...

View Article
Browsing all 13921 articles
Browse latest View live