to_table materializes a DuckDB Python relation as a named table. It performs a CREATE TABLE AS SELECT operation, avoiding repeated reads from a remote CSV source. section 6.2.1
Persist a relation snapshot
population.to_table("population") population_table = con.table("population") population_table.count("*").show() The resulting table can be queried through the relational API and returns instantly because it stores a snapshot of the data available when created. section 6.2.1
