Skip to content

Create a arrow Table from a Polars object

Description

Create a arrow Table from a Polars object

Usage

## S3 method for class 'RPolarsDataFrame'
as_arrow_table(x, ...)

Arguments

x A Polars DataFrame
Ignored

Examples

library(polars)


library(arrow)

pl_df = as_polars_df(mtcars)
as_arrow_table(pl_df)
#> Table
#> 32 rows x 11 columns
#> $mpg <double>
#> $cyl <double>
#> $disp <double>
#> $hp <double>
#> $drat <double>
#> $wt <double>
#> $qsec <double>
#> $vs <double>
#> $am <double>
#> $gear <double>
#> $carb <double>