Category "python"

regex - match character which is not escaped

I'm trying to make a regex to match unescaped comma characters in a string. The rule I'm looking for is "A comma not preceded by an even number of backslashes"

How to find the Consecutive Days from a list of dates or data frame

I need to find consecutive days from the data frame but I am having some trouble trying to find them. I tried R, Excel, and Python but still couldn't find the s

Numpy Array is not copying over all values of the array to csv file

I'm having trouble with the formatting of my array when it it saved to a csv file, each time I run the program I get a different result, sometimes the string "c

PIP install and Python requests get PermissionError on Windows

Search all over the internet, thread after thread tried every solution possible almost 2 days and can't find solution. I have already tried to reinstall python

Build apk with buildozer

A project written in windows in a shared folder with an Ubuntu 18.04 virtual machine when building apk gives the following error: # Install platform # Run '

How to run a python GUI created in pycharm using .bat [duplicate]

I wanted to ask help from this community for a solution for this: I made a python gui that I can run fine when using the terminal in pycharm.

PyQt5 set multiple MIME Types in Clipboard

I have been trying to create an HTML-Like table using PyQt5 in terms of copying functionality. However, I am stuck at the following issue: when copying data fro

how to reverse the order of the output

What are the possible ways of reversing order of any output? For example, if I have a code like this: for i in range(10): print(i) This is fairly a simple

python integer division with a float < 1 yields strange result

To illustrate my example Try running: print(1//0.1) print(1/0.1) print(int(1/0.1)) Output: >>> print(1//0.1) 9.0 >>> print(1/0.1) 10.0 >&g

How do I parsing with yacc

Hi i develop a project with python. the name of the project is drawing robot. I use turtle module. For example i entered F 45. firstly i made lexical analysis a

Issue with numpy-stl package installation

I have python 3.10.4 and pip 22.1 on my Mac, and I'm trying to install numpy-stl, but it shows the following error: % pip install numpy-stl Collecting numpy-stl

eBay Marketplace Account Deletion/Closure Notifications

I am trying to start an eBay API in Python and I can't find a single answer as to how to get an API key with eBay's new requirements of "Account Deletion/Closur

Is there a difference in inserting a txt/csv file or an image into a BLOB column in Oracle?

I'm writing a Python script with CX_ORACLE which will take about 20K files and upload them into a BLOB column. They are PDFs,CSVs,TXTs, and JPGs. I'm just not u

Resizable in Python Ursina Window

I want to set the Ursina window resizable to False, just like tkinter. window.resizable(False, False)

Django WebSocket connection to 'ws://127.0.0.1:8000/ws/chat/8_9/' failed:

I am doing a Django project in which I have added a live chat feature using Django channels. When I finished the messaging part I worked on other parts of the p

Django allauth Facebook and Google login

For normal signin/signup i'm using django's default singin/signup, but in facebook and google login i'm using django allauth, and to implement django allauth i

Pandas rolling average of a columns of dates

I'm trying to calculate the rolling average of a column of datetime objects. In my scenario, the input data are the last day below freezing each year for ~100 y

How do I iterate over two lists?

I have troubles in using for loops in Python. I wrote this code: x=5 people=['Mary','Joe'] genders=['she','he'] for person in people: print(person) for

How do I specify tox + python version specific requirements

Currently I have the following: [gh-actions] python = 3.7: py37 3.8: py38 3.9: py39 3.10: py310 pypy-3.7: pypy3 pypy-3.8: pypy3 [tox] m

python - mpltPath.Path(polygon).contains_points(points)

I have a list of polygon's corners points (polygon) and a list of x,y points (points). when I do mpltPath.Path(polygon).contains_points(points) I get a list of