polars.LazyFrame.dtypes#
- property LazyFrame.dtypes: list[DataType][source]#
Get the column data types.
- Returns:
- list of DataType
A list containing the data type of each column in order.
Warning
Determining the data types of a LazyFrame requires resolving its schema. Resolving the schema of a LazyFrame can be an expensive operation. Avoid accessing this property repeatedly if possible.
See also
Examples
>>> lf = pl.LazyFrame( ... { ... "foo": [1, 2, 3], ... "bar": [6.0, 7.0, 8.0], ... "ham": ["a", "b", "c"], ... } ... ) >>> lf.dtypes [Int64, Float64, String]