Table.load(Load data into the table.
data: Table | DataFrame | DataLoad,
/,
*,
error_handling: Literal[‘fail’, ‘warn’, ‘log’, ‘skip’] ='fail',
) → None
Parameters
data
The data to load. Besides the variousDataLoad implementations, there is built-in support for:
Anything that can be converted to a pyarrow.Table or a pandas.DataFrame can be loaded too:
-
NumPy array:
-
Spark DataFrame:
This requires:
- A Spark version supporting Java 25 (
pyspark >= 4.2). - A JDK bundling the
jdk.incubator.vectormodule, used by Spark’s launcher (jdk4pydoes not bundle this module).
- A Spark version supporting Java 25 (
+= operator provides syntax sugar to load a single row, given either as a:
error_handling
How to handle rows that cannot be loaded. Atoti tables are strongly typed and reject rows whose values do not match the table’satoti.Column.data_types.
For instance, the following Arrow table has a Count column stored as string and thus cannot be loaded into table’s int Count column.
-
"fail"raises an error and interrupts the load:The table is left unchanged:The error can be found inlogs_pathtoo: -
"warn"skips the incompatible data and raises a Python warning:The table is still unchanged:A Python warning is raised:The error is logged: -
"log"skips the incompatible data and logs the errors: -
"skip"skips the incompatible data without logging:
See also:
DataLoad, load_async(), data_transaction(), and infer_data_types().