traveler.core.stored.StoredTable#

class traveler.core.stored.StoredTable(store, table_name=None, index_array=None)[source]#

Bases: WorkingTable

Initialize the IndexedTable with an index array and a table.

Parameters:
  • index_array (jax.numpy.ndarray) – An array of indices to index into the table.

  • table (JaxTable) – The table to index into.

  • store (AbstractStore | None)

  • table_name (str)

Methods#

info()

Print summary information about the underlying table.

push_down(*attrs)

Compute a lazy attribute and push it down to the underlying table.

rehash(*args)

Rehash a table's random key by folding in additional values.

table_fields(*[, include_extras])

Return the inherited schema fields declared by class annotations.

to_pandas([include_prng_key, full_table])

Convert the stored table to a pandas DataFrame.

to_polars([include_prng_key, full_table])

Convert the stored table to a polars DataFrame.

validate([verbose, sources, missing_fields])

Validate the table and index array.

with_store(store)

Return a new instance of this StoredTable with the given store.

without_store()

Prepare this stored table for use with JAX tools.

Attributes#

global_random_seed

self_idx

Get the index array for this IndexedTable.

table_id_col

The name of the column that serves as the unique identifier for the table.

table_name

The name of the table in the store.