Category "python"

How to antialias picture to get rid of the jerkiness in the image

I am trying to antialias a picture and tried few methods, with open CV and with matplotlib and also with PIL. But still can't get rid of the jerkiness. This is

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

Error while web scraping full job descriptions across multiple pages using BeautifulSoup

Would be great to get your help/ input on this! I'm trying to scrape job info from indeed. Everything in the code was working fine until I tried to get full job

Separate values in a DataFrame column into a new columns depending on value

I have a DataFrame like below but much larger: df = pd.DataFrame({'team': ['Mavs', 'Lakers', 'Spurs', 'Cavs', 'Mavs', 'Lakers', 'Spurs', 'Cavs'],

The above exception was the direct cause of the following exception - ValueError: 10 is not in range

I am trying to run the below code to load the dataset into a PyTorch dataset class with a custom collate function and map them but I am getting the error. The d

Importing a .dll reference - can't find solution explorer or add reference in VS 1.66

Going to preface this post with the obligatory, "I'm new to coding and to VS so go easy on me! I'm learning." With that being said, I'm writing a script for an

If statement doesn't work even if conditions are met

I'm writing some code to automate data entry at work. My issue is that the if statements are not working despite the conditions being met. I've tested the code

Why m getting error on installation of geopandas, Cartopy, Proj /

When I am trying to install Cartopy keep getting below error: C:\Users\Justin\Documents\Python Programs>pip install cartopy Collecting cartopy Using cache

Convert column value to Ascii using division and mod in sQL SERVER

I have a table in SQL SERVER as below with many columns like below | D401 | D402 | |----------------------------

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

installing fuse-python on windows

I'm getting this error egg:info error Collecting fuse-python Using cached fuse-python-1.0.5.tar.gz (49 kB) Preparing metadata (setup.py) ... error error:

Selenium code downloads in Linux but not Windows

The following code sets up selenium with chromedriver: import os import selenium print(selenium.__version__) url = 'https://home.treasury.gov/policy-issues/fina

Python & Selenium: ElementClickInterceptedException: Message: element click intercepted error

I use Selenium in Python for scraping. The following error is displayed when I try to click button tag. ElementClickInterceptedException: Message: element click

Function df.empty returning an empty dataframe even when it's not

I have a function in my script that checks if the user is already registred in the DataFrame. But I'm having a problem, sometimes this function simply doesn't w

How to catch PyQt5 exception? "Process finished with exit code" [duplicate]

Question: How do I get an error message, if something does wrong in PyQt5 and my program crashes with the PyCharm console message "Process fin

pd.style.applymap only to 1 CELL , accesed by row and column name/index

for index, rows in taxcode[['ITC Tax Code']].iterrows(): if str(taxcode['ITC Tax Code'][index]).endswith('ZERO') and taxcode['% VAT rate verification'][index] =

i keep getting group single has no attribute rect error

im trying to make a camera for my character and i keep getting this when i run the code import collections import pygame from camera import * from settings impo

Takes 0 positional arguments but 2 were given, when it is not the case

SOLVED, answer below! Here is the relevant fragment of the code: def redraw() -> int: subprocess.call(['tput', 'reset']) cursor.hide() print(get_

how to create a program that reads the data from the text file and prints it out in two different sections

I need a program that groups "names" and "birthdates" from a file and then prints them into two different sections as follows: Name A Masinga Etc. Birthdate 21

access List within List and check index for item changed in 2nd list

I am trying to get data from list within list data1 = [['Once per day', '50 times per day', 'Once per week', 'Twice per day'], ['Serverless', 'Infrastructure as