Category "python"

Achieving the equivalent of Google CoLab @param markup in Jupyter without CoLab

Google Colab has some unique embedded markdown features which are not present in Jupyter markdown. For example, this produces a slider: #@title SEIR Model with

How do i plot a bar graphic with the groupby made column

I'm an Environmental Engineer, trying to make a leap change to the data science area which interests me more. I'm new to Python, I work at a company that evalua

Find tickSize Binance

I'm trying to find tickSize using this method but it returns an error. Data: {'symbol': 'FIROUSDT', 'status': 'TRADING', 'baseAsset': 'FIRO', 'baseAssetPrecisio

Dash DatePickerRange with Graph

I am trying to connect a graph to a DatePickerRange. However, i keep running into a problem, when trying to connect the graph and date picker. I have the follow

tokenization with huggingFace BartTokenizer

I am trying to use BART pretrained model to train a pointer generator network with huggingface transformer library. example input of the task: from transformers

Is there an 8-bit code page (CP-####) such that every byte is defined?

I am currently trying to make a code for a data compression algorithm. My goal is to take a file and read it, convert it to its binary equivalent, and then stor

Python script when scheduled gives PermissionError: [WinError 5] Access is denied

I have .bat file which I want to run by task scheduler. Bat file has something like: "C:\Python3\python.exe" "%PATH_to_script.py" And when I try to run this fr

create a list from given data to use in read_fwf

in load_fwf the parameter colspecs assigned as a list like this example data2 = pd.read_fwf("sample.txt",index_col='Order number',names=['Order number', 'code',

Facebook login to post in my database and link user to backend

I have a web app with Python and Flask that takes user input and stores it in a database, then I populate all the data in an HTML file. However, I want the user

python-selenium.common.exceptions.WebDriverException: Message: Unknown error

I'm up with python 3.8 and selenium but recently I downloaded the latest edge web driver zip file and runned the mswdedriver.exe from that and typed this code i

dj-rest-auth Reset email link keeps pointing to the backend

I'm using dj-rest-auth with react and i'm trying to use the frontend url instead of the backend url. The solution i am using for the account creation confirmati

How to turn the item in the column to multiple columns?

I am trying to do this. So, currently my df look like this. col_names = ['movie_id', 'movie_title', 'genres'] df = pd.read_csv('/content/drive/MyDrive/testing/m

How do i import another turtle in python

im studying coding in bugaria in highschool. Im in 8th grade, and were studying python and processing. Since the end of this schoolyear is near, our python tea

How can I use queues in python and find the subset of matching values of two functions?

import time import multiprocessing as mp start = time.time() def square(i): return i**2 def add(i): return i def sigma_sum(start, stop, expression):

LU decomposition error using SARIMAX in statsmodels

I get a 'LU decomposition' error where using SARIMAX in the statsmodels python package. This is the code: from statsmodels.tsa.statespace.sarimax import SARIMAX

Create a function that will accept a DataFrame as input and return pie-charts for all the appropriate Categorical features

I can create 1 pie-chart using the 'Churn' column to group the data, however, not sure how to create a function that will accept a DataFrame as input and return

Pyspark create schema for maptype with different value types

I need to give the correct schema to an rdd I have, but struggling with a maptype that has different valuetypes. I guess the problem is that one specific Key ha

Is there a thing in discord.py similar to streamTIme in discord.js?

I'm using the package youtube_dl for the play music command. After a while, now I've been working on the rewind & forward commands, I have implemented a bas

Pandas read_csv specify AWS Profile

Pandas (v1.0.5) use s3fs library to connect with AWS S3 and read data. By default, s3fs uses the credentials found in ~/.aws/credentials file in default profile

python pip: "error: legacy-install-failure"

I want to install gensim python package via pip install gensim But this error occurs and I have no idea what should I do to solve it. running build_ext