Skip to content

Parquet

Parquet graph-directory helpers from annnet.io.parquet.

The public functions are to_parquet(...) and from_parquet(...). The Parquet reader and writer remain format-specific, but intermediate annotation tables are built through AnnNet's centralized dataframe backend helpers instead of choosing Polars or pandas locally.

annnet.io.parquet

Classes

Functions

to_parquet
to_parquet(graph, path)

Write lossless GraphDir:

vertices.parquet, edges.parquet, slices.parquet, edge_slices.parquet, manifest.json Wide tables (attrs as columns). Hyperedges stored with 'kind' and head/tail/members lists.

from_parquet
from_parquet(path)

Read GraphDir (lossless) using bulk ops for speed.