python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
Polars DataFrame memory size in Python
Was wondering about the size of particular polars DataFrames.
I tried with:
from sys import getsizeof
getsizeof(df)
Out[17]: 48
getsizeof(df.to_pandas())
Out[18]: 1602923950
It appears all polars df...
fvg
Votes: 0
Answers: 2
Memory Error Exception using PIL to Process Video Stream on Raspberry Pi
I have written a Python script that runs on a Raspberry Pi and utilizes the PiCamera library to capture video, the Python Image Library (PIL) to extract individual frames, and then does some image pro...
Brayton Larson
Votes: 0
Answers: 0
How to efficiently create a CSR row_index vector in python?
I am trying to create a CSR matrix with m rows, n columns, filled with zeroes and ones (at most one per column). I have a numpy array idcs with indices where my 1s are located, ranging from x to n.
My...
hawkspar
Votes: 0
Answers: 1
Python generator pipeline using all available memory
I'm working on a cli application that searches through a disc image for byte strings that could be jpgs. The core of the application is a pipeline of generators that opens the disc image file, reads b...
Xochozomatli
Votes: 0
Answers: 0