Results for python-3.x
I would like to create two different Seaborn plots: a distribution plot and a boxplot, appearing side by side. This is the code I have: import numpy a...
I have this file structure animal //this folder contains my pthon project mamal (Folder) dog.py //this is my dog python file reptile (Folder) s...
I'm trying to find lines in large amount of text with 4 words or less and ending with ":". The text is messed up so any whitespace can show up at the ...
I have a pandas dataframe: d = {'col1': ['Date1', 'Date1', 'Date1', 'Date2', 'Date2', 'Date2', 'Date3', 'Date3', 'Date3', 'Date4', 'Date4', 'Date4'], ...
I am new to Python and notice the following error when using min(). import pandas as pd a = [1,2,3,4,5] print(min(20, pd.array(a)**2)) The code should...
I am using a workflow automation program called Alteryx. It has its own "Send Email" tool but it is inherently limited to 10mb attachments and I have ...
I am trying to pass an array index and filename to a python script bu tI just can't get it to work: #!/bin/bash #SBATCH --job-name=test #SBATCH --outp...
I try to do a FastAPI that trigger file downloading through the StreamingResponse() Class (see FastAPI page). It is actually ok for this part. My prob...
I have a CSV file that looks like time Col_A Col_B Col_C Col_D Price 123 A1 B1 C2 D6 23.43 124 A5 B3 C7 D1 14.63 125 A3 B2 C3 D2 343.43 ...
In R, I can quickly create a list of sequential and non-sequential numbers like so: numbers 1 2 3 4 5 8 12 15 16 17 18 19 Is there a similar met...
I'm working on a MacOS system in Visual Studio Code. I'd like to be able to import a C structure filed with data from a C-file into a Python file, for...
I need to find all possible paths from the initial position to the destination across a frozen lake. The frozen lake is represented by a matrix, where...
Similar issues have been posted like vscode "python.jediEnabled": false, showing as Unknown Configuration Setting I was really struggling now setting ...
I am writing a python package that I intend to use for some projects I am working on. I do not want this package to be in a public package index, so I...
I have created a program to take inputs from the user and find the average of those inputs. My code is - def avg(*a): sum = 0 n = 0 while ...
Here is my script: for a in range(-100, 101): for b in range(-100, 101): for c in range(-100, 101): for d in range(-100, 101):...
I'm attempting to parse a wikipedia file dump with RegEx. I want to match and remove everything between a set of brackets, including the brackets them...
I have thousands of models in my package, each of them contains one class. Users can choose model they want to use by: from myproject.type1.models.m1 ...
When I do a pdf search using the QPdfsearchmodel class my model only seems to include the word I searched for and context before/context after: Howev...
I am using plotly.express to produce a figure with 3 subplots. The legend repeats for each subplot, so I have 3 legend listings (one for each subplot)...
I have a simple python code in the VS Code. under a package my, there are two files aa.py and test_aa.py aa.py # Function to be tested def add(a, b): ...
I'm trying to add two separate traces using different y values to the exact same facet grid figure. The figure uses facet_col to separate subplots bas...
i was doing some python exercises on code wars and i came across this exercise: There is an array with some numbers. All numbers are equal except for ...
First I compute a square in the IDLE shell of Python 3.12.0: >>> x = 123456 >>> x**2 15241383936 This agrees with my TI-89. Now I compute what I woul...
Full disclosure, I'm not a programmer but can attempt to write a little bit of code with some help from the forums. I'm trying to use python to manipu...
How do I undo the most recent local commits in Git?
How can I remove a specific item from an array in JavaScript?
How do I delete a Git branch locally and remotely?
How can I find all files containing a specific text (string) on Linux?
How to find all files containing specific text (string) on Linux?
How do I revert a Git repository to a previous commit?
How do I create an HTML button that acts like a link?
How do I check out a remote Git branch?