Assuming I've got a flask app I would like to call a python script, which would take the values of some inputs within the page (texts, selects, etc.) and then c
Every row of my dataframe contain a record with a unique key combination. The data validation will be based on the columns and on key combination. For example,
from screen_selections import NameSelection from kivy.app import App from kivy.uix.screenmanager import ScreenManager class ScreenManagerApp(App): def __i
I have a dictionary stored in a list, this dictionary looks like: res = [] if 'depts' in data: for department in self.env['hr.department'].browse(data['dept
I'm trying to implement pagination in my FastAPI-application. I want to display all todo's that a user has added. The problem is that the response I'm getting b
I'm making a program that calculates salary by taking in input from a .txt file. It opens it, then runs it through an if/else statement to see where it falls un
I ran into an issue preparing data for database, since iam doing that very first time I scraped text from html dt and dd tags, so i'am getting a lot of informa
Let's say i have this matrix: (doesn't have to be squared) a b c d e f g h i I want to return a list, or a generator, of all it's pairwise-neighbors. Meaning:
Searched for about 1 hour and still unable to find any relevant search results. I want to wait on multiple pipes in a single thread, but unable to convert the f
I collect and process hundreds of jumbled tables every day, and some of the data requires attention. (Sorry for my English and typography skills) The item with
I would like to add a new level to the index of a dataframe, based on columns name. How can i do that ? df home city A -0.166809 0.213299 B -0.
Code: grouped_object = cov.groupby(["Continent"]) for key, item in grouped_obj: print('key is: ' + str(key)) Output: key is: Africa key is: Asia key is: Eu
I am new in Python and web scraping, but I keep learning. I have managed to get some exciting results using BeautifulSoup and Requests libraries and my next goa
Let say, I want to have a custom type that I call Size. Fundamentally, this type is nothing more than an int. However, I would like to have the following behavi
I have this model: class OrderProduct(models.Model): order = models.ForeignKey(to=Order, on_delete=models.CASCADE) product = models.ForeignKey(to=Produc
Given the RGB percentages of a color, e.g. "wild watermelon", (99%, 42%, 52%), the right RGB values are (252, 108, 133). But when I tried rgb_percent = ('99%',
I am preparing automation solution in Azure. I decided to use Azure Durable Functions. As per Durable Functions design I have created: Client Function (triggere
How I can save this: a=1b=2c=3d=4 into the table like this (I do not need header): 1 2 3 4 Thanks.
there is a lot of information about how to write Luhn algortim. I'm trying it too and I think that I'am very close to succes but I have some mistake in my code
I have similar question to one that has been asked several years ago, the link is down here. the thing is that all answers are in python 2 and does work for me.