Skip to main content
Filter by
Sorted by
Tagged with
-5 votes
0 answers
39 views

re.search( r"(\d{1,4}[^\d:]{1,2}\d{1,4}[^\d:]{1,2}\d{1,4} | \w{3,10}.{,6}\d{4})", 'abc2024-07-08' ) Why does this regex extract the second pattern, "abc2024", not "...
Fuad Ak's user avatar
  • 148
0 votes
0 answers
21 views

I'm trying to perform a Gaussian Process Regression on the following series of data points (X and Y): X Y 0.00001 -6.8200000000000003 0.00014 -6.8073846153846160 0.00042 -6.6818333333333326 ...
Josep's user avatar
  • 1
-5 votes
0 answers
40 views

I am new to programming, and I am trying to start a project on cleaning my CSV file into different formats that I want. How should I go about doing that, and what resources can I use to do it?
CoderJer's user avatar
0 votes
1 answer
43 views

I'm trying to create a Pandas DataFrame from a JSON file that looks like this: { "GameID": "1,218,463,841", "Date - Start": "1761097369", "Date - End&...
Margot Sibson's user avatar
-2 votes
0 answers
79 views

Imagine you get sequence of integers: [a1 a2 a3 ... an] where: 1 <= a <= 10^6 1 <= n <= 10^6 You are given a function f(x) that can change a number to the closest lower prime number, or ...
ToridFartFart's user avatar
Best practices
0 votes
3 replies
64 views

I have a corpus of text which includes some accented words, such as épée, and I would like people to be able to easily search through it using an ASCII keyboard. Ideally, they would simply type ...
hackerb9's user avatar
  • 2,091
0 votes
2 answers
54 views

After converting module A to CPU, the origin parameter tensor still stays on the GPU? When it is released? Is it wrong if I reuse the parameter? My code: import torch.nn as nn class A(nn.Module): ...
jiwei zhang's user avatar
Advice
2 votes
2 replies
42 views

I have the following use case. My main program is written in Python, and I want to accelerate some parts of it. The Python program makes use of dataclasses (~structures) to store parameters, arrays, ...
ninivert's user avatar
1 vote
0 answers
61 views

I want to frequently test a Python application I'm developing with uv, which I publish to a private repository on a GitLab instance. I've generated an access token with read access to the repo and I ...
FLKR's user avatar
  • 77
Advice
1 vote
3 replies
44 views

I want to implement in python some algorithms from a paper that allow for a pre-trained neural network to be modified (adding or removing neurons or layers) conserving (theoretically) the outputs of ...
Rubén Sales Castellar's user avatar
Advice
0 votes
6 replies
77 views

I've installed a package from a cloned repository, in "editable" mode (pip install -e .). I can't import the package in a script in the virtual environment where the package in installed (...
Cutter's user avatar
  • 1,852
1 vote
0 answers
45 views

I'm developing a WhatsApp chatbot in Python and want to implement a human handover feature. The goal is to temporarily pause the bot's automated responses when a human administrator opens the chat to ...
Tiago Silva's user avatar
-2 votes
0 answers
36 views

I maintain a large scientific Python application that uses several third-party modules like PyQtGraph (for plotting) and PyMeasure (for instrument control). I frequently need to add small custom ...
Dawid Maślanka's user avatar
0 votes
0 answers
25 views

I am trying to build opencv from source to enable GStreamer support. I have followed this instructions here, but an error occurred. More specifically, the error occurred in this step: make -j$(nproc) ...
Eypros's user avatar
  • 5,743
-3 votes
0 answers
24 views

I'm new to coding. I'm in VS Code, working with geopandas, leaflet, etc. I'm using the .explore() method to show interactive maps. Sometimes, after I run the .explore() method, the output tells me I ...
George Weiss's user avatar
0 votes
0 answers
24 views

We have an internal tool that was distributed simply by users cloning the git repository. The purpose of the tool is to configure newly created virtual machines for later testing our "real" ...
GhostCat's user avatar
  • 141k
Advice
0 votes
0 replies
13 views

Similar to How can I list all tags for a Docker image on a remote registry? but I am asking specifically how to do it using existing Docker credentials (i.e. I already did docker login private.repo) ...
Archimedes Trajano's user avatar