Category "python"

Conversion of .iqy file to .xlsx file using python/vba

I have downloaded some data from Sharepoint in *.iqy format (this is the only format in which the data can be downloaded). Post this, I perform the following st

How do I fill in the pData parameter of the GetRawInputData module

I'm semi-new to ctypes and I'm having trouble with how to use the GetRawInputData function. I'm not sure how to fill in the 3rd argument. Here's how the code lo

Compiling AggregatorV2V3Interface leads to TypeError: Interfaces cannot inherit. interface

SOlidity course: Brownie Fund Me Lesson 6: https://github.com/PatrickAlphaC/brownie_fund_me Compiling AggregatorV2V3Interface leads to TypeError: Interfaces can

Can someone help? I want to do image classification using CNN while taking pose estimated as input

I hope you're all doing well. I'm new here for help. Basically, I have hand poses and labeled data for the image. for example image class is labeled as: 1: Hol

Access bitnami/kafka running in minikube from local machine

I am trying to access a bitnami/kafka cluster deployed using helm. I need to be able to send messages to kafka from my local machine and then have my pods proc

Interface for DjangoFilterConnectionField

I have two classes class RegisteredUser(graphene.ObjectType): class Meta: interfaces = (BaseClient, ) name = graphene.String() group = graphen

How to recheck setup.cfg after editing it in 'pip install -e .` mode

pip install -e . is a great feature. It allows you to work on your package without having to uninstall-reinstall constantly. It seemingly doesn't, however, keep

How to find correct "json" parameters on Request POST?

I am new to webscrapping and am trying to access an employee database on a website. To do this, I noticed that when I hit the search field the site sends a requ

APC PDU CLI automation over SSH

I found this script on Github for managing APC PDU from CLI, but it's using Telnet to login to APC PDU. What I'd like to do is change Telnet to SSH, but it does

How to find minimum of some variable with repeating row indexes and preserve all other variables in Python Pandas

Basically, I have multiple repeating dates and the indices (1/2/1990 many times followed by 1/3/1990 many more times, etc.) I want to find the minimum of a give

Why cv2.write saves black images?

hi folks, greetings am using this code that I found on the web, to apply a wiener filter on an image, the code : from scipy.signal.signaltools import deconvolve

searching in range between columns using sqlite3 in pandas

I have found solution to my problem in one question Merge pandas dataframes where one value is between two others I tried to modify it for my situation but it d

bat file in Windows scheduler not running python script

I am trying run a python script to update a ppt presentation. I have also tried this a year ago with running a regression and updating a table in SQL and didn't

Pythonic way of checking if a condition holds for any element of a list

I have a list in Python, and I want to check if any elements are negative. Specman has the has() method for lists which does: x: list of uint; if (x.has(it &l

How to get image from bytes in Python?

I have an image (jpeg). I get the bytes from it simply using open('img.jpg', 'rb'). And for instance I send that bytes to my friend. So which way using Python c

Return Value from Function is None

Hello So i created a function to see if every character of a string is valid to be changed from base 10 to base 2(binary for example) but i dont know why everyt

Making a plot that has an x-axis that has neg. values representing hours prior to the start of the event, then pos. values representing hours after

I'm not sure if my question makes sense, so apologies on that. Basically, I am plotting some data that is ~100 hours long. On the x-axis, I want to make it so t

Mfcc classification: in sklearn how could I solve the dimension error of y

prediction_class = labelencoder.inverse_transform(predicted_label) prediction_class ValueError: y should be a 1d array, got an array of shape (1, 10) instead. p

Telethon (bot), how to work with commands, buttons and anwers

I want to implement something like BotFather. It sends buttons and you select your option, and if the option need a answer you must answer with the correct answ

ValueError: Excel file format cannot be determined, you must specify an engine manually

I'm trying to convert multiples files in a diretory to CSV format; I did this code, and ran it in 3 folders. But that one i get this error i found something li