Category "python"

kivmob doesn't show ads in android app python kivy

I try to add ads in my app. I added in my buildozer.spec: android.permissions = INTERNET, ACCESS_NETWORK_STATE requirements = python3,kivy, jnius, kivmob andro

MYSQL and Python: Add salt after the first two characters of the password

I am working in MYSQL and Python. I have a table that stores users login information and want to make this secure. How do I add the salt after the first two cha

Adding correlation result back to pandas dataframe

I am wondering how to add the corr() result back to a panda dataframe as the current output is a bit nested. I just want to have one column in the original data

I'm unable to install some specific libraries via pip install

I've been trying to install the gym library via pip install gym I get the following error WARNING: Discarding https://files.pythonhosted.org/packages/87/86/3f54

SSL error only in python command window with apify request

I am trying to use endpoint from apify.com. When I run my request in web browser with token everything is fine but if I run my request via requests library from

google_play_scraper cannot crawl all reviews

AS I followed codes of reviews_all from https://github.com/JoMingyu/google-play-scraper I sitll cannot get all reviews, just only a few and not even sorted by d

Converting From .pt model to .h5 model

I am using Google colab. I want to convert .pt model from my google drive to .h5 model. I follow link https://github.com/gmalivenko/pytorch2keras and https://ww

How to stop autopep8 not installed messages in Code

I'm a new Python programmer using the Mac version of VS Code 1.45.1 to create a Django project. I have the Python and Django extensions installed. Every time I

Eigenanalysis of complex hermitian matrix: different phase angles for EIG and EIGH

I understand that eigenvectors are only defined up to a multiplicative constant. As far as I see all numpy algorithms (e.g. linalg.eig, linalg.eigh, linalg.svd)

H14 in heroku web

Hello I was just trying to use web and worker based bot I mean something like main.py with # telegram bot from pyrogram import Client,filters Bot = Client(api_i

Simpy: How to monitor resource use

I am trying to understand how to collect data for computing resource use, for example, the average number of customers waiting in line. I looked at the documen

How to convert ffmpeg complex_filter to ffmpeg-python

I am trying to learn to convert ffmpeg command line background blur filter to ffmpeg-python format. '-lavfi' and [0:v]scale=ih*16/9:-1,boxblur=luma_radius=min(h

ModuleNotFoundError: No module named '_tkinter' on macOS

Tkinter doesn't work, it throws an error. Installation % pip3 install tk My code #!/usr/bin/env python3 import tkinter as tk The Error Traceback (most recent

How to ignore infobox when scraping title from Wikipedia anchor text?

I am trying to scrape the first 20 links on a Wikipedia page but I want to ignore the infobox on the right side. It has a 'table' tag. Here is what I have so fa

'Access is denied' to Python 3.8 for PyCharm on Windows 10

Attempting to create a new project in PyCharm Community on Windows 10. Here are the settings for new project in PyCharm: I'm greeted with the error msg: Cannot

problems with """input().split() in loop""" in python

n, m, k, r = tuple([int(i) for i in input().split()]) roads = [] for road in range(m): t = tuple(list(map(int, input().split()))) roads.append(t) pri

How to read SEQ files produced by FLIR thermal infrared cameras?

I have some thermal infrared videos in .SEQ format captures with a FLIR camera. I can view them using FLIR Tools software, but I would like to instead read them

Webscraping Google Search Results Using Google API - Returns same result over and over again

My problem Hi everyone I am attempting to develop my very first web scraper using the Google API and Beautiful Soup in Python. The aim is for the scraper to

How to get PRAW (the Python Reddit API Wrapper) to read submission ID?

Goal: I have collected hundreds of reddit posts' details in Excel sheets. Now, I want to collect comments on these Reddit posts using PRAW. Method: At first, I

How to create a for loop with checking appended models

I have a list of models that I iterate through in a for loop getting their performances. I've added catboost to my model list, but when I try to add it's best e