Schema.create_empty#
- classmethod Schema.create_empty(
- *,
- lazy: bool = False,
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 thisSchema. Otherwise, returns an eager frame.- Returns:
An instance of
polars.DataFrameorpolars.LazyFramewith this schema’s defined columns and their data types.