From an api, I receive a data. It returns two values: 1 and -1. I receive one data per second and in series of 1 or -1. What I want is that when data goes to 1
We have a CLI tool which uses Typer module in python. However, I want to create a custom command prompt - like the mysql prompt for example. mysql> Currentl
I've an excel sheet "Calcs" with 1 column name "old". I'm trying to add new column "new" with a fixed value of "1" to existing sheet "Calcs" and am using below
I'm trying to divide each value of a specific column in df_rent dataframe by simply accessing each value and divide by 1000. But it's returning an error and I c
I am building a web app where the front-end is done with Flutter while the back-end is with Python. GET requests work fine while POST requests get blocked becau
I am trying to find certain string in a list that are between a lowerbound and upperbound (these are user input values). For example say I have a list, states =
I am currently looking to develop a synchronous workflow in a RabbitMQ producer-consumer setup. The producer will publish a message to the queue and it will tak
I am trying to build docker image: FROM python:3.9-alpine ENV PYTHONDONTWRITEBYTECODE=1 ENV PYTHONUNBUFFERED=1 ... But, I got this error: Building app Step 1/
In my application, I would like to include the name, entered by the user, at page one, to the second page. But when I paste the jinja print "{{ data }}" to the
I have made a simple telegram bot in Python. All code is in one .py file. Trying to achieve "continues deployment" I installed Jenkins, and with the GitHub plug
I am learning the socketserver module and I am following the example but I modified the handle function a bit class CustomServer(socketserver.BaseRequestHandle
Hello! Problem: I can calculate xp(t) and xh(t) for any given t value, but not for ġ(t). Context: I'm calculating a general solution for a vibration system
del_db='drop database link my_db_link' cur.execute(del_db) This is a simple query to drop the link database which is executed in SQL developer but it getting
I have a lot of bank-transactions which I want to classify into different categories. The issue is that the text is not a sentence as such but consists only of
I'm working on an academy project to encrypt some files I have managed to encrypt all files from one folder but when there is a folder into that folder i get er
I want to convert my program to exe but program shows these errors. I have this error if I made near the exe file json file with name notes_data.json If i have
I am new to azure functions. What I am trying to do is to get my azure function to open the index.html page, however I am not sure how to pass in the variable d
My while loop prints nothing when it is running. import os import time place = 10 running = True def Write(): j = 1 for i in range(place - 1): print(
category= pd.cut(df.price,bins=[75000,100000,250000,500000,1000000,2000000,4000000,7700000],labels=['7','6','5','4','3','2','1','0']) df.insert(5,'price categor
Numerous similar questions have been asked over the years, such as this one here, but none of the accepted answers solve my problem. The following code: x=[0, 0