questions

ModuleNotFoundError: No module named 'CloudFlare' in Python

ModuleNotFoundError: No module named 'CloudFlare' in Python Question: Hi i have a problem with Python module not found here, i decided to posting here cause i confuse with the error message ModuleNotFoundError: No module named ‘CloudFlare’ i already run pip install cloudflare https://prnt.sc/GtXZE5xiPrIZ the error is the same, but when i check the import CloudFlare …

Total answers: 1

Regex string parsing: pattern starts with ; but can end with [;,)%&@]

Regex string parsing: pattern starts with ; but can end with [;,)%&@] Question: I am attempting to parse strings using Regex. The strings look like: Stack;O&verflow;i%s;the;best! I want to parse it to: Stack&verflow%sbest! So when we see a ; remove everything up until we see one of the following characters: [;,)%&@] (or replace with empty …

Total answers: 1

Creating circular boxplot for circadian data

Creating circular boxplot for circadian data Question: I am trying to find an R code to make a plot that looks like this (below). I know this figure was created in python because I emailed the person who created this code but after 2 months of back and forth with him promising to get me …

Total answers: 1

how to use same url and class for put, get, post, delete functions in drf class base api

how to use same url and class for put, get, post, delete functions in drf class base api Question: in my views file I want to have this logic: class Articles(APIView): def get(self, reqeust, id): #logic def put(self, request, id): #logic def post(self, requst, id): #logic def delete(self, request, id): #logic and I want handle …

Total answers: 1

Create a small control panel on screen for pyautogui monitoring and control purposes

Create a small control panel on screen for pyautogui monitoring and control purposes Question: How do I display a small control panel screen that can control and monitoring pyautogui process? I expect there is a pinned window that for monitoring purpose such as displaying current log.txt that has been generated by logging and controlling purpose …

Total answers: 1

How can i import data from kaggle while not downloading it?

How can i import data from kaggle while not downloading it? Question: I want to import data from kaggle to my Notebook while not having to download it (So if i share my .ipynb u only need to run the code and it will download it from the internet), but i can’t figure out if …

Total answers: 1

Python matrix input not working this way?

Python matrix input not working this way? Question: I have tried several ways that are working. But, this one is not. Please help me understand why ? row, col = 2, 3 mat1 = [[None]*col]*row print(mat1) for i in range(0, row): for j in range(0, col): mat1[i][j] = int(input()) print(mat1) Input: 1 2 3 4 …

Total answers: 2

Is there a way to shuffle pairs within a list?

Is there a way to shuffle pairs within a list? Question: I have a pairs of names in a list that I want to shuffle for xgboost. Input: [[‘A1’, ‘B1’], [‘A2’, ‘B2’], [‘A3’, ‘B3’], [‘A4’, ‘B4’], [‘A5’, ‘B5’], [‘A6’, ‘B6’], [‘A7’, ‘B7’], [‘A8’, ‘B8’]] Expecting: [[‘A1’, ‘B1’], [‘B2’, ‘A2’], [‘A3’, ‘B3’], [‘A4’, ‘B4’], [‘B5’, ‘A5’], …

Total answers: 4

Find closest integer with the same weight

Find closest integer with the same weight Question: I am trying to solve this problem: Write a program which takes as input a nonnegative integer x and returns a number y which is not equal to x, but has the same weight (same number of bits set to 1) as x and their difference is …

Total answers: 1

How to fusion cells of a dataframe by summation

How to fusion cells of a dataframe by summation Question: I want to transform my dataframe by merging it cells and summing them into other larger cells given the indices of those, as an example, given the indices [0,2] & [2,4] on the X and Y axis and go from the following dataframe : +—-+—-+—-+—-+ …

Total answers: 3