Category "python-3.x"

how to apply a format on multiple excel files at once (hide gridlines & autofit columns)

I'm trying to apply a specific format on an iterate excel files, i need to hide the gridlines and autofit columns width, i tried many codes and styles but no on

CV2 cap.set(1,idx); cap.read(), Does it Read Frame idx or Frame idx+1

In CV2 will this chunk of code read the frame for the given frame number or the next frame? desiredFrames = [3,5,7,n] cap = cv2.VideoCapture("somefile") for id

Add 1 hour to time from user input

I'm coding a script that asks the user for a time (24 hour format), and then adding 1 hour to the inputted time. Later on in my script, I add the time that it g

How to make a developed perl package with a python wrapper callable from everywhere

A bit of context: I have a Perl parser, named parse_log.pl, that parses logs into a .m file (MATLAB function). In the .m file, the logs are stored into a MATLAB

Tkinter how update main window combobox values from Toplevel list python3.8

I have 3 modules (small, dont worry). main_module = it has a combobox and a button. Comobobox list must be update each time a list (in module2) increases in nu

How select options from a smart-select?

I am trying to get all the options from a dropdown with Selenium but I get the exception that the Select module does not work with smart-select. Is there any wa

how to identify type of noise (if Gaussian/salt and paper etc) in an image using python

Experts, From Noise Estimation / Noise Measurement in Image , we understood that if any image is having noise or not. but different types of noise has diffe

Ubuntu Terminal Opens Python Instead of Running Python File

I'm trying to run a python script from the Ubuntu terminal with python3 index.py but Ubuntu just opens the Python terminal instead of running the actual script.

im not able to save the screen shot from python

kindly help me im not able to save the screen shot on the desired folder the code is running however the screen shot is not saving on the path please help impor

PyGTK entry.set_placeholder_text doesnt work - missing tex

I am attaching a piece of my code in which I try to display the text in the Entry field with predefined text. I use entry.set_placeholder_text for this, but unf

selenium.common.exceptions.SessionNotCreatedException: Message: session not created from timeout: Timed out receiving message from renderer: 600,000

I get following error: selenium.common.exceptions.SessionNotCreatedException: Message: session not created from timeout: Timed out receiving message from render

how to stop a func from running and return a value after one minute?

I would like to call a func and stop it from running after one minute, returning a value. i have a code that looks similar to that: def foo(txt): best_value=

Cannot perform std with type object Dask

performing normal calculation on dask is giving me the error x_std = x.std().compute() Computing head: x.head() LocalTime Ask Bid 0 20

Unable to download data from Blob storage. Getting 404 returned

I'm using a Python Azure function which gets invoked when I add a blob to a storage container. The function is triggered ok, but I get a 404 response when tryin

Filter between dates in MongoEngine

I have a problem filtering between date_from and date_to in MongoEngine. This is the document structure and the next MongoEngine query: def devices_graph(device

MLFlow trying to launch non-existent python

Launching mlflow ui from a brand new conda environment, called, say B, results in: Fatal error in launcher: Unable to create process using '"C:\Users\user_name

How it's logically possible to exit this loop while gathering data

here's the API for refence: https://github.com/JeremySkalla/pysmashgg/tree/3b04a4b2d83bbfe765c519ac37c437f478984742 There is a function in the API event_by_game

Displaying a stacked bar graph with nested lists

I am trying to display a stacked bar graph.I have 3 lists as shown below- totalpointperxaxis [6, 9, 13, 5, 14, 382, 26, 2, 45, 2] clusternamesList [['Cluster1'

How to write a method to check independence which returns a dictionary of length 3

I having some difficulty to try to understand the question and I am not very sure how to get a method to returns a dictionary of length 3. This is the sample ta

Python - TensorFlow - Facial Recognition App

I follow guide to build facial recognition app , code runs in problem on training models every thing runs fine except the training models: any suggestions ? @tf