Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.activeviam.com/llms.txt

Use this file to discover all available pages before exploring further.

Session.read_csv(path, /, *, array_separator=None, client_side_encryption=None, columns=frozendict({}), data_types=frozendict({}), date_patterns=frozendict({}), default_values=frozendict({}), encoding=‘utf-8’, keys=frozenset({}), partitioning=None, process_quotes=True, separator=’,’, table_name=None, true_values=frozenset({}), false_values=frozenset({}), **kwargs)

Read a CSV file into a table.
This is just a shortcut for:
csv_load = tt.CsvLoad(path, ...)
data_types = session.tables.infer_data_types(csv_load)
table = session.create_table(
    table_name,
    data_types={**inferred_data_types, **data_types},
    default_values=...,
    keys=...,
    partitioning=...,
)
table.load(csv_load)
The longer variant can be refactored to move the load() call inside a data_transaction().