ibis.omniscidb.api.OmniSciDBClient.create_table

OmniSciDBClient.create_table(table_name, obj=None, schema=None, database=None, max_rows=None)

Create a new table from an Ibis table expression.

Parameters
  • table_name (string) –

  • obj (TableExpr or pandas.DataFrame, optional) – If passed, creates table from select statement results

  • schema (ibis.Schema, optional) – Mutually exclusive with expr, creates an empty table with a particular schema

  • database (string, optional) –

  • max_rows (int, optional) – Set the maximum number of rows allowed in a table to create a capped collection. When this limit is reached, the oldest fragment is removed. Default = 2^62.

Examples

>>> con.create_table('new_table_name', table_expr)  # doctest: +SKIP