heartPosts from the community...
Link
@faun shared a link, 2 years, 1 month ago

Using NumPy to replace Pandas GroupBy-Apply pattern for performance

Pandas UDF can be limited, so we can speed up the Pandas GroupBy-Apply pattern by using NumPy instead, resulting in a significant performance improvement. However, it's important to benchmark and consider costs before deciding between Pandas and NumPy for your specific use case...

Link
@faun shared a link, 2 years, 1 month ago

Writing Python like it’s Rust

The author started programming in Rust and it influenced their approach to designing programs in Python. They emphasize the use of type hints, dataclasses for structured data, algebraic data types for explicit data shapes, and newtypes for specifying domain-specific usage of existing types. These pr..

Link
@faun shared a link, 2 years, 1 month ago

PGP signatures on PyPI: worse than useless

A large number of PGP signatures on PyPI can’t be correlated to any well-known PGP key and, of the signatures that can be correlated, many are generated from weak keys or malformed certificates. The results suggest widespread misuse of GPG and other PGP implementations by Python packagers, with said..

loading...