Learncado
Learncado

Learncado brings together a vast collection of questions and answers. Expand your knowledge, learn new skills, and find solutions to your queries effortlessly. Enhance your learning experience and save valuable time by exploring our website today.

Resources

  • Questions
  • Question By Tags

Help and support

  • Contact
  • About

  • Geniecourse
  • Jetsodeals
  • Rentcado
  • Dealcado
© 2021-2023 Learncado All Rights Reserved.

Search Results (3024)

Results for python-oracledb

December 3rd, 2023
Putting two seaborn distribution and boxplot side by side in Python

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...

pythonseabornside-by-side
Read more
December 2nd, 2023
I am trying to seperate my python files in diffrent folders when I try to import I get error No module named 'animal'

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...

python
Read more
December 2nd, 2023
Regex unexpected behavior with capturing new lines (python)

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 ...

regexpython-re
Read more
December 2nd, 2023
Create new dataframe based on distinct combinations of column values in Python

I have a pandas dataframe: d = {'col1': ['Date1', 'Date1', 'Date1', 'Date2', 'Date2', 'Date2', 'Date3', 'Date3', 'Date3', 'Date4', 'Date4', 'Date4'], ...

pythondataframepandas
Read more
December 2nd, 2023
`min()` is not working properly in Python?

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...

pythonmathmin
Read more
December 1st, 2023
Python - Passing email body as variable into SendEmail function

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 ...

pythonsmtp
Read more
December 1st, 2023
How to pass two variables in bash to a python script

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...

bashslurm
Read more
December 1st, 2023
Python FastAPI: How to return a Response with Unicode or non-ASCII characters encoded into JSON data?

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...

pythonjsonpandascharacter-encodingfastapi
Read more
December 2nd, 2023
Tensor (5-dim matrix) in python pandas?

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 ...

pythonnumpypandasmatrixtensor
Read more
December 1st, 2023
Quickly create a list of sequential and non-sequential numbers in Python

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...

python
Read more
November 30th, 2023
How can I pipe a large C structure to Python directly?

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...

pythonc
Read more
November 30th, 2023
Frozen Lake Game in Python using z3 library

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...

pythonz3z3py
Read more
November 30th, 2023
"Unknown Configuration Setting" in VSCode. Where to find current VSCode Python configurations for settings.json?

Similar issues have been posted like vscode "python.jediEnabled": false, showing as Unknown Configuration Setting I was really struggling now setting ...

pythonvisual-studio-code
Read more
December 2nd, 2023
Python relative import reexport

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...

python-3.x
Read more
November 29th, 2023
Fix NameError in python

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 ...

python
Read more
November 29th, 2023
How to make the nested for loop execute faster in python?

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):...

pythonnumpyloopsoptimization
Read more
November 29th, 2023
Properly match nested brackets with regex in python

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...

pythonregex
Read more
November 30th, 2023
How to enable IDE IntelliSense with dynamic imported python classes?

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 ...

pythonvisual-studio-codeintellisensepycharm
Read more
December 1st, 2023
How do I get Qlistview to include all the search details for pdf hits in QPdfSearchModel Class for python like it does in the documentation

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...

pythonpdfqabstractitemmodelqlistviewqpdf
Read more
November 30th, 2023
Control duplication of legend items in Python Plotly.express

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)...

pythonpython-3.xplotlyplotly-python
Read more
November 29th, 2023
failed to mock function in the python

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): ...

python-3.xunit-testing
Read more
November 30th, 2023
Adding two plotly line charts to the same facetgrid figure - python

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...

pythonplotlyfacet-grid
Read more
November 28th, 2023
finding a different number in a array full of identical numbers in python

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 ...

python
Read more
November 28th, 2023
In Python, why is y**2 sometimes incorrect when y is a numpy array?

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...

pythonnumpyarraysexponent
Read more
November 29th, 2023
Python - Populate excel fields with incrementing time

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...

pythonexceldatetime
Read more

Hot Topic

  • 25881

    How do I undo the most recent local commits in Git?

  • 11618

    How can I remove a specific item from an array in JavaScript?

  • 20343

    How do I delete a Git branch locally and remotely?

  • 7387

    How can I find all files containing a specific text (string) on Linux?

  • 7330

    How to find all files containing specific text (string) on Linux?

  • 7611

    How do I revert a Git repository to a previous commit?

  • 2671

    How do I create an HTML button that acts like a link?

  • 8481

    How do I check out a remote Git branch?