Skip to main content
Filter by
Sorted by
Tagged with
Best practices
0 votes
2 replies
13 views

When trying to integrate HTMX into my Django app, I'm facing a design issue. My base.html file contains fixed layout elements (a navigation bar and a title). I created a container section with the ID #...
Bautista Ribotta's user avatar
Advice
0 votes
5 replies
55 views

for i in range(1, 101): score = random.randint(1, 100) print(f"Student {i}: {score}") if score >= 80: grade = "A" elif score >= 60: grade = "B" ...
David Oju's user avatar
0 votes
0 answers
24 views

I have two data series of model prediction and observations. I am able to make line plots of these series. I would like to add a linear regression fit of the two data series. i would also like to add ...
Zilore Mumba's user avatar
  • 1,610
Tooling
0 votes
0 replies
17 views

I am benchmarking several tabular Generative AI models (including TVAE, TabDDPM, and WGAN-GP) to synthesize sensor data. I need to rigorously evaluate the statistical similarity between my generated ...
PDEA Lab's user avatar
0 votes
0 answers
12 views

I'm using NoDriver Python with a chrome profile and I'm running into an issue where the browser some times enters into a corrupted state and NoDriver can't control it. For example if I run the script ...
Ahmed Zaidan's user avatar
0 votes
0 answers
32 views

I have a Python pipeline that processes legal opinions into structured JSON and rendered HTML. The extraction mostly works, but page numbers are inconsistent across source formats. I’m trying to ...
chhaya tundwal's user avatar
1 vote
1 answer
49 views

While I was making a project, I realised that I needed the pywifi module to connect to Wi-Fi. When I tried to install it, it said that the word "install" was invalid. How do I fix this? >&...
Chan En Quan Gabriel Chs's user avatar
1 vote
2 answers
37 views

With pd.options.mode.copy_on_write = True, the original should not be modified when writing to a copy. However, when I reassign a column of the copy, it affects the original. import pandas as pd pd....
jan22321's user avatar
Tooling
0 votes
0 replies
15 views

I want to broadcast a list of jax pytrees with each other, where it is assumed that one pytree is the prefix for all others (but we don't know which pytree is the prefix in advance). The solution I ...
Ben's user avatar
  • 603
Best practices
0 votes
1 replies
27 views

Idea I want to take a relatively large cache of data (108k items, 80 data points per item) and sift through it to grab items at semi-random and generate small pools of items. Each of the pools need to ...
Dimir's user avatar
  • 11
Best practices
0 votes
2 replies
52 views

I have been trying to learn FastAPI, with a small project and now I need to add a database table with an auto generated int id as a field. I want to know how to write this id field in Python models ...
eng.ragy's user avatar
-1 votes
0 answers
19 views

I would like to regrid variables from a netcdf file defined on a regular lat/lon grid to the Belgian Lambert conic conformal projection (EPSG:31370: X, Y in meters). The input netcdf file has the ...
Alessandro's user avatar
0 votes
1 answer
45 views

We recently upgraded from Python 3.9 to 3.14 and it appears that the default start method for multiprocessing has switched from 'fork' to 'spawn' and it is causing some tests to fail, trying to ...
rpmcnally's user avatar
  • 259
Best practices
0 votes
3 replies
71 views

I am trying to create a dataclass from a dynamically created class. I am doing something like [1] A = dataclass(type("ClsA", (), {"a":1})) However, the attribute a is not ...
A. Gocht's user avatar
  • 143
-1 votes
1 answer
70 views

I'm trying to create simple API with login system and roles. I have a problem with my code: from fastapi import FastAPI, Response, HTTPException, Request, Depends from fastapi.responses import ...
Влад's user avatar

15 30 50 per page
1
2 3 4 5
147169