Category "python"

ModuleNotFoundError: No module named '_ctypes' Mac M1

While installing some libraries you may find the issue ModuleNotFoundError: No module named '_ctypes'

Format Changing Problem of Number Input in streamlit

The program offers the number format as Default in a.b format (like 1.2) but I want to show as a:b format (like 1:2) How can I change this? I tried below but i

Python calculate increment rows till a condition

How to obtain the below result. Sample Data with Output Time To default is the column which is to be calculated. We need to get the increment number as Time to

Stop webpage from auto-reload with selenium/chromedriver

Im using python with the selenium package and the chromedriver to scrape a webpage. The page is automatically reloading itself (probably via java-script) every

in odoo14 , i'm sending a notficition to the manager , is there any option to add a button in the notification?

i want to add a button in the notification so the manager can answer with yes or no def Send_notificiton(): for note in self: note.manager_id.user_id.notify_dan

Why console is showing templates not defined error in django

I am new to django , I am facing one while django running server , I have copy and paste my code please tell me what is wrong with my code 'DIRS': [templates],

Encoding each value in a pandas cell

I have a dataset Inp1 Inp2 Inp3 Output A,B,C AI,UI,JI Apple,Bat,Dog Animals L,M,N LI,DO,LI Lawn, Moon, Noon Noun X,Y

how to model a GEKKO constraint to guarantee the count of variables with same value > k

I have the following objective function : Minimize(sum(abs(di[i]-d[i]) ) ) and I want to add a constraint to make sure that d[i] is appeared at least k times i

why does minizinc python show TypeError: Can't instantiate abstract class Instance with abstract methods

0 Though i've Minizinc installed in my PC! still getting this error: --> 12 instance = Instance(gecode, nqueens) ImportError: cannot import name 'Instance' f

ParseError: Error tokenizing data. C error: Buffer overflow caught - possible malformed input file. (read_csv)

I cannot use read_csv method of pandas properly on kaggle. Error that I get is: ParseError: Error tokenizing data. C error: Buffer overflow caught - possible ma

I have an issue with coding this section of my project

i am trying to implement a piece of code that waits for a certain time before allowing a user to do something i've been using help from the Internet and a codi

Pyspark's df.writeStream generates no output

I'm trying to store the tweets from my kafka cluster into Elastic Search. Initially, I set the output format to be 'org.elasticsearch.spark.sql'. But , it creat

Which TensorFlow version is compatible with NumPy version==1.18?

I need to use the librosa and tensorflow packages for a Neural Network audio classification project. librosa has a dependency on the numba package, which requir

I try to use Gekko to find Q, R1 and P1. Why do I report an error

import math from gekko import GEKKO m = GEKKO() Q = m.Var(value=0) # 给定初值为0 P1 = m.Var(value=0) # 给定初

Anchor Layout in python - kivy

I'm trying to make a layout without using the "kv file", what's wrong with this code? thanks. class My_Layout(AnchorLayout): layout = AnchorLayout() box1 = Box

How to get rid of the KeyError: 'names'

I was trying to make a program that can make classification between runway and taxiway using mask rcnn. after importing custom dataset in json format I am getti

Locust - get stats in python

How does one get the Locust stats inside python? I'm trying to get the current value of req/s but locust.env.Environment.stats is an empty object, and locust.st

Pyspark select multiple columns from list and filter on different values

I have a table with ~5k columns and ~1 M rows that looks like this: ID Col1 Col2 Col3 Col4 Col5 Col6 Col7 Col8 Col9 Col10 Col11 ID1 0 1 0 1 0 2 1 1 2 2 0 ID2 1

How to modify .condarc file or use pinning to force conda to install the noarch selenium version when running "conda update --all"?

I would like to install selenium v4.1.0 on Anaconda python on Windows. https://anaconda.org/conda-forge/selenium If you run conda install selenium, conda will i

Setting up Hydrogen and Atom with Anaconda on Windows

I would like to run python interactively in ATOM using the Hydrogen package. I am on Windows 10. I would like to be able to initiate an ATOM session by double