Skip to main content
0 votes
0 answers
7 views

I am trying to move some test configuration into a common Poetry package to avoid repetition of the same fixtures. In a project there is a package named user-service with tests folder inside. Inside ...
Misha's user avatar
  • 57
1 vote
1 answer
40 views

I trying to make ratelimiter for users in aiogram bot with middlware, now I created class for requests and class for ratelimiter, where reuqest are. My problem is what is better for performance and ...
madjetmax's user avatar
-2 votes
0 answers
74 views

Problem Description The RL code implements a Gymnasium-compatible environment (DoomEnv) for training reinforcement learning agents in DOOM Retro. It captures game state (observations) via shared ...
Steven Harrison III's user avatar
1 vote
2 answers
125 views

I have a value that always needs to be defined but may not always be meaningful, and I need a placeholder for when it doesn't yet have a meaningful value. Usually, I would use None as that placeholder ...
Anerdw's user avatar
  • 3,526
Advice
0 votes
4 replies
53 views

I am working on a dataset for Housing pricing prediction problem. While I am trying to find an estimation between the features and the dependent variable price, I found there is a significant ...
Abir Kar's user avatar
-9 votes
0 answers
90 views

I am learning Python and came across the end parameter in the print() function. By default, print() adds a newline after each output. However, I saw examples using end="" or end=" "...
rudrabharthi's user avatar
2 votes
1 answer
42 views

I am trying to parallelize a data-processing task where I've wrapped my logic inside a class. Each instance of the class is supposed to log its own progress to a centralized log file. However, as soon ...
ssd's user avatar
  • 119
2 votes
2 answers
102 views

I've been messing around with OpenGL/ModernGL in Python/Pygame, and after getting my images rendered to the screen, I have been having issues rotating them. I'm aware of the order that I need to ...
user32678267's user avatar
1 vote
0 answers
37 views

I'm trying to load some .nc files this way: ds = xr.open_dataset('path/to/file.nc') At first I get no error message, but when I try to operate or simply visualize the data I get this really long ...
Ramiro chalar's user avatar
3 votes
2 answers
91 views

I'm trying to fix a CSV file I received in which actual new lines were inserted throughout the data, effectively splitting one row of data into multiple ones with incomplete columns. The line breaks ...
Lyran's user avatar
  • 33
Advice
0 votes
6 replies
102 views

I know it seems like a very stupid question, but my brother said it was easy, so I wonder now if yml is easier than python. He says it's just remembering names and values which does make it seem ...
mag bit's user avatar
Best practices
1 vote
2 replies
39 views

Let's take a concrete example. I created the following my_function Python function: from google.cloud.aiplatform import Endpoint def my_function(existing_endpoint: Endpoint)-> str: return ...
Maxime Oriol's user avatar
Tooling
0 votes
4 replies
78 views

from selenium.webdriver.support import expected_conditions as EC import time \# 1. Setup Service and Driver service = Service('C:/Users/HP/Desktop/Drivers/chromedriver_win32/chromedriver.exe') driver ...
Okeke Chidindu's user avatar
-2 votes
2 answers
124 views

I'm trying to return the "user_input" variable in the while loop in the "make_user_choice" function. I don't know how I should go about this. Here's my code: import random "&...
nathan's user avatar
  • 21
Best practices
0 votes
3 replies
62 views

What sql function will display first 4 terms in a string. string are of 10-25 in total length. string can be number or letters. results should be sorted in descending order. data is for hockey ...
Tom Pfister's user avatar

15 30 50 per page
1
2 3 4 5
147099