Category "python"

The window i made with qt designer doesn't show up

I made this window using qt designer i did not add the code that downloads the songs yet but when I run it the window doest show up from PyQt5 import QtCore, Qt

Download report from app store connect API price

I can't find anywhere. I want to use appstoreconnect API for automatic process of raport using python. So Does use appstoreconnect reporting API is free? https:

Trying to save image from numpy array with PIL, getting errors

trying to save an inverted image, saved inverted RGB colour data in array pixelArray, then converted this to a numpy array. Not sure what is wrong but any help

Calculations on a pandas DataFrame column conditional on another column

I notice several 'set value of new column based on value of another'-type questions, but from what I gather, I have not found that they address dividing values

Flask Babel RuntimeError: Working outside of request context

I tried to set up multiple Dash Apps inside a Flask App and use Flask Babel. from flask import Flask, request from flask_babel import Babel, gettext from werkze

How to fix Spacy Transformers for Spacy version 3.1

I'm having the following problem. I've been trying to replicate example code from this source: Github I'm using Jupyter Lab environment on Linux and Spacy 3.1 #

delete all rows from first 3 columns of a worksheet (keeping the row with column names) using openpyxl

I am relatively new to Python. I am unable to figure out how to delete all rows (without deleting the row with column names) of specific columns with openpyxl.

How to authenticate to Azure Devops by using token of an Application ID(service principal)?

I have an Azure Devops pipeline where i have automated the creation of a service connection for azure subscriptions and also triggering the stage 2 of the pipel

Why is the code not plotting the expected output?

country = str(input()) import matplotlib.pyplot as plt lines = f.readlines () x = [] y = [] results = [] for line in lines: words = line.split(','

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