Category "python"

How to completely reorganise a table using aggregate data from qualitative information

I have a pandas dataframe which has the following layout: Column data type 'Water-Binder' float 'Fly Ash' float 'Age' int 'Strength %' float The age column i

calculate remaining import fields based on 2 import fields

I have a model with multiple fields. I want to make an importer (possibly with the django import-export library) that only takes two fields and with that calcul

Custom GRU model (OGRU)

I want to customise the GRU-RNN cell from tensorflow. But i dont know which function i need to change from standart GRU from tensorflow. i want to modify GRU ce

"How do you want to open this file" when open Jupyter Notebook with Anaconda or Prompt

When I tried to open it, windows just pop up the regular "i don't know how to open this ext, how do you want to open it" dialog box. The anaconda prompt gave me

Connect a python-run PostgreSQL database to a flutter web app

I am currently developing a flutter web app for tracking the information in students classes. The app is basically a task management app curated for students. I

Python JIRA jira.issue slow performance

I am trying to retrieve from JIRA tree graph of parent child issues epic->story->task using python3.10 jira=3.1.1 for project with 400 issues it takes mi

Visualizing the permutohedron in 3D plot

I am trying to plot the Permutohedron in python using plotly, numpy, and pandas. This is my current code: import plotly.express as px import numpy as np import

Is there a way to specify the timezone in the Meteostat API to retrieve historical daily weather information?

I'm using the Meteostat Python API. I'm trying to fetch historical daily weather data. For doing this, the Daily function can be used. This function receives an

Reproducibility issue with PyTorch

I'm running a script with the same seed and I see results are reproduced on consecutive runs but somehow running the same script with the same seed changes the

Is there a way to directly upload a video from youtube into colab?

I'm working on a lane detection project and I need to load the lane video into my colab for processing from youtube. Can i directly upload using the video's lin

Geopy Nominatim broke Heroku deploy

I deploy my telegram bot on Heroku and I use pyTelegramBotapi and geopy. The last time I deploy, it was 10 days ago, all was working fine but today when I start

MT5/Metatrader 5 connect to different MT5 terminals using python

I've got multiple python programs that connect to Mt5 terminal using the following code. # Establish connection to the MetaTrader 5 terminal if not mt5.initiali

checks the text for the presence of 2 or more characters or digits surrounded by parentheses, with at least the first character in uppercase

The contains_acronym function checks the text for the presence of 2 or more characters or digits surrounded by parentheses, with at least the first character in

How to use GCP's ResourceManager Python client library to get all child Projects under a Folder?

v3 of the Cloud ResourceManager Python API has a list_projects method, but it only returns Projects that are direct children of the given Folder. For example, y

How does one save a plot in wandb with wandb.log?

I'm trying to save a plot with wandb.log. Their docs say to do: wandb.log({"chart": plt}) but this fails for me. I get two errors, 1st error (when I do NOT

openai.error.InvalidRequestError: Engine not found

Tried accessing the OpenAPI example - Explain code But it shows error as - InvalidRequestError: Engine not found enter code response = openai.Completion.creat

Render NumPy array in FastAPI

I have found return numpy array as image from fastapi but I am still struggling to show my image which just appears as a white square. I read an array into io.B

How do I find all the polygons of a GeoDataframe that contain any point of another GeoDataframe in GeoPandas?

I have a GeoDataframe of about 3200 polygons, and another GeoDataframe of about 26,000 points. I want to get a third GeoDataframe of only the polygons that cont

Define correct scipy.signal.spectrogram input parameters

I have the following code: sampling_rate=128 N = sampling_rate _f, t, Sxx = signal.spectrogram(_signal, sampling_rate, nperseg=N, nfft=N, noverlap=N-1, mode="co

Python module "pyLDAvis.gensim" not found

I installed pyLDAvis and gensim modules in jupytor notebook,when i tried to use "pyLDAvis.gensim" module i am getting error as No "module named 'pyLDAvis.gensim