Category "python"

Skip clicking on an element in the While loop, when opening a popup with selenium. Problem with While loop

This loop scrolls through the list of names on a web page and clicks on each "Add" button next to the name. It works well and correctly wait = WebDriverWait(dri

Scraping webpage with tabs that do not change url

I am trying to scrape Nasdaq webpage and have some issue with locating elements: My code: from selenium import webdriver import time import pandas as pd driver

bundle : The term 'bundle' is not recognized as the name of a cmdlet, function, script file, or operable program

it is my first question in STACK! I'm trying to create Github pages account using https://startbootstrap.com/theme/clean-blog-jekyll. In the terminal i'm gettin

How to make my Pygame window always active and listening for input?

I spent the last 3 hours searching for a way to create a simple toggle button script that lets me know if a button on my Thrustmaster HOTAS has been pressed. As

virtualenv not activated on windows 11

Im using python 10 and windows-11 i try to activate venv with the following command .\onlineShop\Scripts\activate.bat I create venv using following command pyt

matplotlib set up font computer modern and bold

I would like to have a plot where the font are in "computer modern" (i.e. Latex style) but with x-ticks and y-ticks in bold. Due to the recent upgrade of matp

How to register a JDBC Spark dialect in Python?

I am trying to read from a databricks table. I have used the url from a cluster in the databricks. I am getting this error: java.sql.SQLDataException: [Simba][

ValueError: row index exceeds matrix dimensions sparse coo max

I really have no idea what's the root cause! I have created below matrix and had tried increase the (M, N) size, or reduce the data size or the row size or colu

How can I use Regex to extract all words that written in the camel case

I tried to extract all consecutive capitalized words in a given string written with no spacing in between. E.g. The University Of Sydney => TheUniversityOfSy

How to use gdal.Wrap() to resample a raster with nan cell

I used gdal.Wrap() to resample from a high resolution to a lower. However, my raster has no value (nan). So, when I set resampleAlg, the larger grids with nan(s

how to make repetitive request of the input?

I write this code to get the of digit of the number inputted by the user the problem I don't know how to make it repetitive to user to get the request of enteri

Maya Python Script Job Attribute Change

I am trying to get one boolean attribute (A) to change another(B). The one to be controlled (B) already has a script job running it and so I can't create a set

DataFrame challenge: mapping ID to value in different row. Preferably with Polars

Consider this example: import polars as pl df = pl.DataFrame({ 'ID': ['0', '1', '2', '3', '4', '5','6', '7', '8', '9', '10'], 'Name' : ['A','','','','B

Dynamic chord size in a celery chain

Here is the workflow I'm trying to achieve with celery: * download a big file * split it in chunks (to files) * process each chunk independantly * notifications

Python: Print string in reverse

Write a program that takes in a line of text as input, and outputs that line of text in reverse. The program repeats, ending when the user enters "Done", "done"

How to disable the security certificate check for Google Translate

I have to use google translator API to translate Japanese to English for my NLTP project. This is the sample code I am using: from googletrans import Translator

playsound.PlaysoundException: Error 259 for command: play A.mp3 wait The driver cannot recognize the specified command parameter

hello i'm noob in coding really need help.. asked a question before about using my hand gesture to play an audio file. i get the following error when i attempt

subprocess.CalledProcessError: Command '['cmake', '--build', '.', '--config', 'Release', '--', '/m']' returned non-zero exit status 1 [duplicate]

I was trying to install the dlib package for my face recognition project but error keep getting in the way. This is another error and I don't

convert Kitti labels to Yolo

Trying to convert Kitti label format to Yolo. But after converting the bbox is misplaced. this is kitti bounding box This is conversion code: def convertToYolo

Select Value from largest index for each year [duplicate]

New to the Python world and I'm working through a problem where I need to pull a value for the largest index value for each year. Will provide