In the following code i read a MRI scan with 3D images.The scans are axial slices. By executing the following code I try to obtain the sagittal and the coronal planes. My problem is that there is some much noise and I would like to know what I do...
I have multiple clients that send dicts of Numpy arrays to a ZMQ server. I managed to pack the dicts of Numpy arrays into a multi part message to avoid memcpy's during deserialization, which doubled the throughput.
I'm facing an issue with the loading time of data from PostgreSQL to python Polars. I have 7 tables. two tables have size of 1.5 gb and others around 500 mb. I load the table into various polars data frames and the joined based on single column. it...
I am creating a daily streak command for my Discord bot using Python and the discord.py library. The code I'm using is based on an example I found online but I'm facing an issue.
I have a python/telethon Telegram bot project consisting of a single python file, an SQLite databse, and a config file. The bot runs fine on my local system (all three files are in the same directory) but when I attempt to run the python file on...
I've developed a system for blob detection and tracking in Python using OpenCV and Numpy, which is intended for processing video input. The system is structured around custom classes for detecting and tracking objects (blobs) through video frames....
I want to print something if both a, b is in the dic, or a-foo, b-foo is in the dic or a-bar, b-bar is in the dic. Consider -foo and -bar to be fixed values.
Can I join the multiple if-s with or statements?...
Is there an easy way to run a Python file inside Visual Studio Code with arguments?
I know I can add a custom configuration in the launch.json file with the args keyword. However, it is annoying to modify the launch.json file every time just...
*** Settings *** Library AutoItLibrary *** Keywords *** Upload Front ID Image click element ${FRONTIDUPLOADBTN} sleep 3s Run uploadAutoit.exe ${AUTOIT_FILE_PATH} all Test runs until step of AutoIt...
I have a streaming dataframe (let's call it original ) containing some records. I then filter this table based on some conditions, modify some column values and get a new modified dataframe.
I'm trying to convert my code to Numba friendly implementation, however I keep running into errors with the axis argument (as it is not supported). Specifically, I need to use the np.repeat() function in axis=2
I have a suite of python library using the same namespace (following PEP 420 and in multiple git repositories. I am using poetry to manage dependencies and build the wheels that are uploaded to a private python package repository.
I have a project and I am using the SpeechRecognition module. I noticed that the recognizer have trouble processing input of short pronounced words like next , search , write and such. When i use these kind of words in a sentence like Write...
Python has the Any type which is 'is-consistent' with any type. Isn't it possible to express Any using the type represented in Haskell as forall a.a instead of adding a new type?
i imported paramiko successed but when i want to run this demo error(ImportError: DLL load failed while importing _rust: Unable to find the specified program。)happened.i want to know how to solve this question...
I have a Python function that pulls the issues in the repository using the Github API, and I want to pull the emails of the users who closed and opened the issue with this function. I tried below code but it does not work (it extracts null type) ....
Вы не можете начинать темы Вы не можете отвечать на сообщения Вы не можете редактировать свои сообщения Вы не можете удалять свои сообщения Вы не можете добавлять вложения