modin.pandas.to_snowflake

modin.pandas.to_snowflake(obj: Union[DataFrame, Series], name: Union[str, Iterable[str]], if_exists: Optional[Literal['fail', 'replace', 'append']] = 'fail', index: bool = True, index_label: Optional[Union[Hashable, Sequence[Hashable]]] = None, table_type: Literal['', 'temp', 'temporary', 'transient'] = '') → None[source]

Save a Snowpark pandas DataFrame or Series as a Snowflake table.

Parameters:
  • obj – The Snowpark pandas DataFrame or Series to write.

  • name – Destination table name or fully-qualified identifier, such as "MY_DB.MY_SCHEMA.MY_TABLE" or ["MY_DB", "MY_SCHEMA", "MY_TABLE"]. Unqualified names use the session’s current database and schema. Double-quote identifier components to preserve mixed case.

  • if_exists –

    How to handle an existing table. Defaults to "fail":

    • "fail": Raise ValueError if the table exists.

    • "replace": Drop the table and write the new values.

    • "append": Add rows to the existing table.

  • index – If True (the default), save index levels as table columns in addition to the data columns. Set False to omit the index.

  • index_label – Column label or labels for the saved index. Defaults to the index names. Supply a label for an unnamed index and one label per level for a MultiIndex. Labels must not duplicate data-column labels. Ignored when index=False.

  • table_type – Type of table to create: "temp" or "temporary", "transient", or "" (the default) for a permanent table. See table types.

Returns:

None. The write is executed by this call. Row ordering is not preserved by a Snowflake table.