News for hackers. Stuff that matters.
Re:Show HN: A Python container for dataclasses with multi-in... by joshlk on Monday November 02, 2020 @12:31PM (#24970654)
I came to the idea as I wanted to use the ergonomics and efficiency of Pandas DataFrames but realised it makes messy production code thats hard to maintain. This package provides the best of both worlds.

Description: A Python dataclass container with multi-indexing and bulk operations. Provides the typed benefits and ergonomics of dataclasses while having the efficiency of Pandas dataframes.

The container is based on data-oriented design by optimising the memory layout of the stored data, providing fast bulk operations and a smaller memory footprint for large collections. Bulk operations are enabled using Pandas which has a rich set of vectorised methods for both numerical and string data types.

Re:Show HN: A Python container for dataclasses with multi-in... by jvz on Monday November 02, 2020 @08:28PM (#24975421)
Looks interesting; thanks for writing this!

Does it support nested structs? Sometimes that's more natural than a flat struct.

Re:Show HN: A Python container for dataclasses with multi-in... by joshlk on Tuesday November 03, 2020 @04:30AM (#24977972)
Yes - you can use nested dataclasses. But you will loose some of the nice features