Category "python"

'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

No module named 'virtualenv.activation.xonsh'

I triyed to execute pipenv shell in a new environtment and I got the following error: Loading .env environment variables… Creating a virtualenv for this

scipy.spatial.Delaunay: Finding points inside 3d poly yields points outside the 3d poly

I want to find N random points which are located within a 3d poly e.g. a square-based pyramid. As speed will become a critical parameter later on I'd like to us

Repeated values in prediction with sequential model

The problem I got is with the result, I get the same value in the 'future' field in all the rows as follows. open high low close

Python Numpy: Replacing index with index from other array if zero

I am trying to merge some depth data frames, captured with a Intel realsense depth camera. The depth data frames comes in the following format: dataframe1 = [[0

How to crop and store bounding box image regions in Python?

My idea is to use the multiple bounding box coordinates of the abnormal regions for a given image and crop these regions to save to a separate folder. I have

Specifying a repo for a specific package in pip

I have a privately hosted package that has a name conflict with a public package found on PyPi. Unfortunately, because the public version is higher than my priv

Beginner Python program flow wrong somewhere

import random bored = input('Are you bored? Please answer with a \'yes\' or \'no\'') activities = ['Read a book', 'Watch a movie', 'Do some physical activities

How to analyze/retrieve link details?

I'm trying to retrieve the URL details after I enter it. When I go to this URL https://entropystream.live/PLAIDARMY it is going to be reversed into this https:/

Intraday tick data using tia bloomberg API

I have been using tia to retrieve a dataframe of bloomberg data in 1 minute intervals. Is there a way to retrieve all price ticks similarly, in a dataframe? for

Efficient pooling operation in Tensorflow : Custom pooling layer

I wish to create a custom pooling layer which can efficiently work on GPUs. For instance, I have following input tensor in = <tf.Tensor: shape=(4, 5), dtype=

Automate clear browsing data Safari

Is there any way to automate clearing cache, cookies and history in Safari? I can run Swift, Python, JavaScript and AppleScript. This is the AppleScript I have

Using ssl.wrap_socket to create a socket, gives a security hotspot in security scanner

The scanner is highlighting the below line as security hotspot. mysocket = ssl.wrap_socket(http_server.socket, keyfile=self.keyfile, certfile=self.certFile, ser

Fastapi returns 404 when accessing URL in the browser

I am learning fastapi and created the sample following application from fastapi import FastAPI import uvicorn app = FastAPI() @app.get("/hello") async def hell

Web Scrapping Selenium , Multiple pages and product issue

i am doing scrapping using selenium but not able to get all the href of 25 pages and all 626 products listed by getting all the href of products and multiple fe