Skip to content

Data types information

Source code

Description

Get the data type of all columns as strings. You can see all available types with names(pl$dtypes). The data type of each column is also shown when printing the DataFrame.

Usage

<DataFrame>$dtype_strings()

Value

A character vector with the data type of each column

Examples

library("polars")

as_polars_df(iris)$dtype_strings()
#> [1] "f64" "f64" "f64" "f64" "cat"