Schema.create_empty#

classmethod Schema.create_empty(
*,
lazy: bool = False,
) DataFrame[Self] | LazyFrame[Self][source]#

Create an empty data or lazy frame from this schema.

Parameters:

lazy – Whether to create a lazy data frame. If True, returns a lazy frame with this Schema. Otherwise, returns an eager frame.

Returns:

An instance of polars.DataFrame or polars.LazyFrame with this schema’s defined columns and their data types.