I am creating an API using fastAPI, which receives a form from a HTML page, treats it (requiring a few moments) and returns a message saying this task is comple
I am trying to establish RPi as publisher and subscriber at the same time. I will do that in such way, that I will put subscriber.py and publisher.py as threads
I have code that uses row_number() partitioned by date. I would like to create an array that contains data grouped by the row_number that is partitioned by date
I have coordinates (lat, lon) in a meshgrid, and data asociated with each "point". I want to export into a .csv and have each point asociated with the data i wa
I am a beginner in Python3 and was learning the basics during the last few weeks. I decided to use my knowledge and was trying to build a text-based game based
I'm trying to filter the data frame by values of salary then saving them as CSV files using pyspark. spark = SparkSession.builder.appName('SparkByExamples.com')
Use cv2 to process PNG image, I want some areas to be transparent. change point [0, 0, 0, 255] to [0, 0, 0, 0]. for example, # a is ndarray(880, 1330, 4) a = [[
How do we take a screenshot of the OpenGL windows using python? Using jupyter, opengl and pygame. The code is: import pygame from pygame.locals import * from Op
While working in Django I am trying to take a variable from HTML input, pass it to views.py for some decision making, then pass it from views.py to a separate p
I would like to count the number of times that a word appears in a line of my doc with MrJob and Mapreduce. I just succeed to count the number of time a song ap
I’d like to customize the Sphinx Python domain to recognize a custom field within a docstring for a method and generate custom HTML for it. For example, l
How to edit the python block of gnuradio on windows? I have python IDE installed like PyScripter, Anaconda But pressing 'use default' of 'open in editor' The fo
Here is my DF. data3 = {'DCF Years': ['1st', '2nd', '3rd','4th','5th'], 'DCF Amt': ['8.5', '6.5', '10.5', '4.5', '12.5']} df = pd.DataFrame (data3, columns
How to make a confusion matrix with the average of the results obtained from a binary classifier for, for example, 20 training/testing iterations? These sets ca
How do I fit two unproportional arrays to a regression model? Is it possible to resize/reshape one without loosing the data? I used the code from here but my tr
For some reason side_effect isn't having an effect when I try to change the first two instances of sys.argv to be anything they just default to 1,1. """testing"
from email import message import smtplib sender_email = "[email protected]" rec_email = "[email protected]" password = "example" message1 = "test" server = sm
I am trying to implement a linked list in python and trying to create a method that doubles the value of each element in the linked list. This method updates th
I'm trying to get daily increases and decreases in followers and posts of a certain Instagram account (it is public), how do I get the data of followers and new
I'm writing a simple wordle program in Python. I have to add functions to the already existing code I have, but I've been getting majorly stuck. I posted what I