polars.LazyFrame.dtypes#

property LazyFrame.dtypes: list[type[polars.datatypes.DataType]][source]#

Get dtypes of columns in LazyFrame.

See also

schema

Returns a {colname:dtype} mapping.

Examples

>>> lf = pl.DataFrame(
...     {
...         "foo": [1, 2, 3],
...         "bar": [6.0, 7.0, 8.0],
...         "ham": ["a", "b", "c"],
...     }
... ).lazy()
>>> lf.dtypes
[<class 'polars.datatypes.Int64'>, <class 'polars.datatypes.Float64'>, <class 'polars.datatypes.Utf8'>]