polars.LazyFrame.dtypes

property LazyFrame.dtypes: List[Type[polars.datatypes.DataType]]

Get dtypes of columns in LazyFrame.

See also

schema

Return a dict of [column name, dtype]

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'>]