Package: neopolars 0.0.0.9000

Tatsuya Shima

neopolars: R Bindings for the 'polars' Rust Library

Lightning-fast 'DataFrame' library written in 'Rust'. Convert R data to 'Polars' data and vice versa. Perform fast, lazy, larger-than-memory and optimized data queries. 'Polars' is interoperable with the package 'arrow', as both are based on the 'Apache Arrow' Columnar Format.

Authors:Tatsuya Shima [aut, cre], Authors of the dependency Rust crates [aut]

neopolars_0.0.0.9000.tar.gz
neopolars_0.0.0.9000.zip(r-4.5)neopolars_0.0.0.9000.zip(r-4.4)neopolars_0.0.0.9000.zip(r-4.3)
neopolars_0.0.0.9000.tgz(r-4.4-x86_64)neopolars_0.0.0.9000.tgz(r-4.4-arm64)neopolars_0.0.0.9000.tgz(r-4.3-x86_64)neopolars_0.0.0.9000.tgz(r-4.3-arm64)
neopolars_0.0.0.9000.tar.gz(r-4.5-noble)neopolars_0.0.0.9000.tar.gz(r-4.4-noble)
neopolars.pdf |neopolars.html
neopolars/json (API)
NEWS

# Install 'neopolars' in R:
install.packages('neopolars', repos = c('https://rpolars.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/pola-rs/r-polars/issues

On CRAN:

arrowpolarsrustcargo

7.16 score 482 stars 1 scripts 20 exports 1 dependencies

Last updated 5 days agofrom:365a669652 (on next). Checks:OK: 1 ERROR: 8. Indexed: no.

TargetResultDate
Doc / VignettesOKDec 12 2024
R-4.5-win-x86_64ERRORDec 12 2024
R-4.5-linux-x86_64ERRORDec 12 2024
R-4.4-win-x86_64ERRORDec 12 2024
R-4.4-mac-x86_64ERRORDec 12 2024
R-4.4-mac-aarch64ERRORDec 12 2024
R-4.3-win-x86_64ERRORDec 12 2024
R-4.3-mac-x86_64ERRORDec 12 2024
R-4.3-mac-aarch64ERRORDec 12 2024

Exports:as_polars_dfas_polars_expras_polars_lfas_polars_seriescheck_list_of_polars_dtypecheck_polars_dfcheck_polars_dtypecheck_polars_exprcheck_polars_lfcheck_polars_selectorcheck_polars_seriescsis_list_of_polars_dtypeis_polars_dfis_polars_dtypeis_polars_expris_polars_lfis_polars_selectoris_polars_seriespl

Dependencies:rlang

Readme and manuals

Help Manual

Help pageTopics
Create a Polars DataFrame from an R objectas_polars_df as_polars_df.data.frame as_polars_df.default as_polars_df.list as_polars_df.NULL as_polars_df.polars_data_frame as_polars_df.polars_group_by as_polars_df.polars_lazy_frame as_polars_df.polars_series
Create a Polars expression from an R objectas_polars_expr as_polars_expr.character as_polars_expr.default as_polars_expr.double as_polars_expr.integer as_polars_expr.logical as_polars_expr.NULL as_polars_expr.polars_expr as_polars_expr.polars_series as_polars_expr.raw
Create a Polars LazyFrame from an R objectas_polars_lf as_polars_lf.default as_polars_lf.polars_lazy_frame
Create a Polars Series from an R objectas_polars_series as_polars_series.array as_polars_series.AsIs as_polars_series.blob as_polars_series.character as_polars_series.clock_duration as_polars_series.clock_sys_time as_polars_series.clock_time_point as_polars_series.clock_zoned_time as_polars_series.data.frame as_polars_series.Date as_polars_series.default as_polars_series.difftime as_polars_series.double as_polars_series.factor as_polars_series.hms as_polars_series.integer as_polars_series.integer64 as_polars_series.ITime as_polars_series.list as_polars_series.logical as_polars_series.NULL as_polars_series.polars_data_frame as_polars_series.polars_series as_polars_series.POSIXct as_polars_series.POSIXlt as_polars_series.raw as_polars_series.vctrs_rcrd as_polars_series.vctrs_unspecified
Export the polars object as a tibble data frameas_tibble.polars_data_frame as_tibble.polars_lazy_frame
Export the polars object as an R DataFrameas.data.frame.polars_data_frame as.data.frame.polars_lazy_frame
Export the polars object as an R listas.list.polars_data_frame as.list.polars_lazy_frame
Check if the object is a polars objectcheck_list_of_polars_dtype check_polars check_polars_df check_polars_dtype check_polars_expr check_polars_lf check_polars_selector check_polars_series is_list_of_polars_dtype is_polars is_polars_df is_polars_dtype is_polars_expr is_polars_lf is_polars_selector is_polars_series
Polars column selector function namespacecs
Select all columnscs__all
Select all columns with alphabetic names (e.g. only letters)cs__alpha
Select all columns with alphanumeric names (e.g. only letters and the digits 0-9)cs__alphanumeric
Select all binary columnscs__binary
Select all boolean columnscs__boolean
Select all columns matching the given dtypescs__by_dtype
Select all columns matching the given indices (or range objects)cs__by_index
Select all columns matching the given namescs__by_name
Select all categorical columnscs__categorical
Select columns whose names contain the given literal substring(s)cs__contains
Select all date columnscs__date
Select all datetime columnscs__datetime
Select all decimal columnscs__decimal
Select all columns having names consisting only of digitscs__digit
Select all duration columns, optionally filtering by time unitcs__duration
Select columns that end with the given substring(s)cs__ends_with
Select all columns except those matching the given columns, datatypes, or selectorscs__exclude
Select the first column in the current scopecs__first
Select all float columns.cs__float
Select all integer columns.cs__integer
Select the last column in the current scopecs__last
Select all columns that match the given regex patterncs__matches
Select all numeric columns.cs__numeric
Select all signed integer columnscs__signed_integer
Select columns that start with the given substring(s)cs__starts_with
Select all String (and, optionally, Categorical) string columns.cs__string
Select all temporal columnscs__temporal
Select all time columnscs__time
Select all unsigned integer columnscs__unsigned_integer
Cast DataFrame column(s) to the specified dtypedataframe__cast
Clone a DataFramedataframe__clone
Drop columns of a DataFramedataframe__drop
Check whether the DataFrame is equal to another DataFramedataframe__equals
Filter rows of a DataFramedataframe__filter
Get the DataFrame as a list of Seriesdataframe__get_columns
Group a DataFramedataframe__group_by
Convert an existing DataFrame to a LazyFramedataframe__lazy
Get number of chunks used by the ChunkedArrays of this DataFramedataframe__n_chunks
Rechunk the data in this DataFrame to a contiguous allocationdataframe__rechunk
Select and modify columns of a DataFramedataframe__select
Get a slice of the DataFrame.dataframe__slice
Sort a DataFramedataframe__sort
Select column as Series at index locationdataframe__to_series
Convert a DataFrame to a Series of type Structdataframe__to_struct
Modify/append column(s) of a DataFramedataframe__with_columns
Compute absolute valuesexpr__abs
Add two expressionsexpr__add
Get the group indexes of the group by operationexpr__agg_groups
Rename the expressionexpr__alias
Check if all boolean values in a column are trueexpr__all
Apply logical AND on two expressionsexpr__and
Check if any boolean value in a column is trueexpr__any
Append expressionsexpr__append
Approximate count of unique valuesexpr__approx_n_unique
Compute inverse cosineexpr__arccos
Compute inverse hyperbolic cosineexpr__arccosh
Compute inverse sineexpr__arcsin
Compute inverse hyperbolic sineexpr__arcsinh
Compute inverse tangentexpr__arctan
Compute inverse hyperbolic tangentexpr__arctanh
Get the index of the maximal valueexpr__arg_max
Get the index of the minimal valueexpr__arg_min
Index of a sortexpr__arg_sort
Get the index of the first unique valueexpr__arg_unique
Fill missing values with the next non-null valueexpr__backward_fill
Return the 'k' smallest elementsexpr__bottom_k
Return the elements corresponding to the 'k' smallest elements of the 'by' column(s)expr__bottom_k_by
Cast between DataTypeexpr__cast
Compute cube rootexpr__cbrt
Rounds up to the nearest integer valueexpr__ceil
Set values outside the given boundaries to the boundary valueexpr__clip
Compute cosineexpr__cos
Compute hyperbolic cosineexpr__cosh
Compute cotangentexpr__cot
Get the number of non-null elements in the columnexpr__count
Return the cumulative count of the non-null values in the columnexpr__cum_count
Return the cumulative max computed at every element.expr__cum_max
Return the cumulative min computed at every element.expr__cum_min
Return the cumulative product computed at every element.expr__cum_prod
Return the cumulative sum computed at every element.expr__cum_sum
Return the cumulative count of the non-null values in the columnexpr__cumulative_eval
Bin continuous values into discrete categoriesexpr__cut
Convert from radians to degreesexpr__degrees
Calculate the n-th discrete difference between elementsexpr__diff
Compute the dot/inner product between two Expressionsexpr__dot
Drop all floating point NaN valuesexpr__drop_nans
Drop all floating point null valuesexpr__drop_nulls
Compute entropyexpr__entropy
Check equalityexpr__eq
Check equality without 'null' propagationexpr__eq_missing
Compute exponentially-weighted moving meanexpr__ewm_mean
Compute time-based exponentially weighted moving averageexpr__ewm_mean_by
Compute exponentially-weighted moving standard deviationexpr__ewm_std
Compute exponentially-weighted moving varianceexpr__ewm_var
Exclude columns from a multi-column expression.expr__exclude
Compute the exponentialexpr__exp
Explode a list expressionexpr__explode
Extend the Series with 'n' copies of a valueexpr__extend_constant
Fill floating point 'NaN' value with a fill valueexpr__fill_nan
Fill floating point null value with a fill valueexpr__fill_null
Filter the expression based on one or more predicate expressionsexpr__filter
Get the first valueexpr__first
Flatten a list or string columnexpr__flatten
Rounds down to the nearest integer valueexpr__floor
Floor divide using two expressionsexpr__floordiv expr__floor_div
Fill missing values with the last non-null valueexpr__forward_fill
Take values by indexexpr__gather
Take every 'n'-th value in the Series and return as a new Seriesexpr__gather_every
Check greater or equal inequalityexpr__ge
Return a single value by indexexpr__get
Check greater or equal inequalityexpr__gt
Check whether the expression contains one or more null valuesexpr__has_nulls
Hash elementsexpr__hash
Get the first n elementsexpr__head
Bin values into buckets and count their occurrencesexpr__hist
Aggregate values into a listexpr__implode
Fill null values using interpolationexpr__interpolate
Fill null values using interpolation based on another columnexpr__interpolate_by
Check if an expression is between the given lower and upper boundsexpr__is_between
Return a boolean mask indicating duplicated valuesexpr__is_duplicated
Check if elements are finiteexpr__is_finite
Return a boolean mask indicating the first occurrence of each distinct valueexpr__is_first_distinct
Check if elements of an expression are present in another expressionexpr__is_in
Check if elements are infiniteexpr__is_infinite
Return a boolean mask indicating the last occurrence of each distinct valueexpr__is_last_distinct
Check if elements are NaNexpr__is_nan
Check if elements are not NaNexpr__is_not_nan
Check if elements are not NULLexpr__is_not_null
Check if elements are NULLexpr__is_null
Return a boolean mask indicating unique valuesexpr__is_unique
Compute the kurtosis (Fisher or Pearson)expr__kurtosis
Get the last valueexpr__last
Check lower or equal inequalityexpr__le
Return the number of elements in the columnexpr__len
Get the first n rowsexpr__limit
Compute the logarithmexpr__log
Compute the base-10 logarithmexpr__log10
Compute the natural logarithm plus oneexpr__log1p
Calculate the lower boundexpr__lower_bound
Check strictly lower inequalityexpr__lt
Get the maximum valueexpr__max
Get mean valueexpr__mean
Get median valueexpr__median
Get the minimum valueexpr__min
Modulo using two expressionsexpr__mod
Compute the most occurring value(s)expr__mode
Multiply two expressionsexpr__mul
Count unique valuesexpr__n_unique
Get the maximum value with NaNexpr__nan_max
Get the minimum value with NaNexpr__nan_min
Check inequalityexpr__ne
Check inequality without 'null' propagationexpr__ne_missing
Negate a boolean expressionexpr__not
Count null valuesexpr__null_count
Apply logical OR on two expressionsexpr__or
Compute expressions over the given groupsexpr__over
Computes percentage change between valuesexpr__pct_change
Get a boolean mask of the local maximum peaksexpr__peak_max
Get a boolean mask of the local minimum peaksexpr__peak_min
Exponentiation using two expressionsexpr__pow
Compute the product of an expression.expr__product
Bin continuous values into discrete categories based on their quantilesexpr__qcut
Get quantile value(s)expr__quantile
Convert from degrees to radiansexpr__radians
Assign ranks to data, dealing with ties appropriatelyexpr__rank
Create a single chunk of memory for this Seriesexpr__rechunk
Reinterpret the underlying bits as a signed/unsigned integerexpr__reinterpret
Repeat the elements in this Series as specified in the given expressionexpr__repeat_by
Replace the given values by different values of the same data type.expr__replace
Replace all values by different valuesexpr__replace_strict
Reshape this Expr to a flat Series or a Series of Listsexpr__reshape
Reverse an expressionexpr__reverse
Compress the column data using run-length encodingexpr__rle
Get a distinct integer ID for each run of identical valuesexpr__rle_id
Create rolling groups based on a temporal or integer columnexpr__rolling
Apply a rolling max over valuesexpr__rolling_max
Apply a rolling max based on another columnexpr__rolling_max_by
Apply a rolling mean over valuesexpr__rolling_mean
Apply a rolling mean based on another columnexpr__rolling_mean_by
Apply a rolling median over valuesexpr__rolling_median
Apply a rolling median based on another columnexpr__rolling_median_by
Apply a rolling min over valuesexpr__rolling_min
Apply a rolling min based on another columnexpr__rolling_min_by
Apply a rolling quantile over valuesexpr__rolling_quantile
Apply a rolling quantile based on another columnexpr__rolling_quantile_by
Apply a rolling skew over valuesexpr__rolling_skew
Apply a rolling standard deviation over valuesexpr__rolling_std
Apply a rolling standard deviation based on another columnexpr__rolling_std_by
Apply a rolling sum over valuesexpr__rolling_sum
Apply a rolling sum based on another columnexpr__rolling_sum_by
Apply a rolling variance over valuesexpr__rolling_var
Apply a rolling variance based on another columnexpr__rolling_var_by
Round underlying floating point data by decimals digitsexpr__round
Round to a number of significant figuresexpr__round_sig_figs
Sample from this expressionexpr__sample
Find indices where elements should be inserted to maintain orderexpr__search_sorted
Flags the expression as "sorted"expr__set_sorted
Shift values by the given number of indicesexpr__shift
Shrink numeric columns to the minimal required datatypeexpr__shrink_dtype
Shuffle the contents of this expressionexpr__shuffle
Compute the signexpr__sign
Compute sineexpr__sin
Compute hyperbolic sineexpr__sinh
Compute the skewnessexpr__skew
Get a slice of this expressionexpr__slice
Sort this expressionexpr__sort
Sort this column by the ordering of another column, or multiple other columns.expr__sort_by
Compute square rootexpr__sqrt
Compute the standard deviationexpr__std
Substract two expressionsexpr__sub
Get sum valueexpr__sum
Get the last n elementsexpr__tail
Compute tangentexpr__tan
Compute hyperbolic tangentexpr__tanh
Cast to physical representation of the logical dtypeexpr__to_physical
Return the 'k' largest elementsexpr__top_k
Return the 'k' largest elementsexpr__top_k_by
Divide two expressionsexpr__truediv expr__true_div
Get unique valuesexpr__unique
Count unique values in the order of appearanceexpr__unique_counts
Calculate the upper boundexpr__upper_bound
Count the occurrences of unique valuesexpr__value_counts
Compute the varianceexpr__var
Apply logical XOR on two expressionsexpr__xor
Evaluate whether all boolean values are true for every sub-arrayexpr_arr_all
Evaluate whether any boolean value is true for every sub-arrayexpr_arr_any
Retrieve the index of the maximum value in every sub-arrayexpr_arr_arg_max
Retrieve the index of the minimum value in every sub-arrayexpr_arr_arg_min
Check if sub-arrays contain the given itemexpr_arr_contains
Count how often a value occurs in every sub-arrayexpr_arr_count_matches
Explode array in separate rowsexpr_arr_explode
Get the first value of the sub-arraysexpr_arr_first
Get the value by index in every sub-arrayexpr_arr_get
Join elements in every sub-arrayexpr_arr_join
Get the last value of the sub-arraysexpr_arr_last
Compute the max value of the sub-arraysexpr_arr_max
Compute the median value of the sub-arraysexpr_arr_median
Compute the min value of the sub-arraysexpr_arr_min
Count the number of unique values in every sub-arrayexpr_arr_n_unique
Reverse values in every sub-arrayexpr_arr_reverse
Shift values in every sub-array by the given number of indicesexpr_arr_shift
Sort values in every sub-arrayexpr_arr_sort
Compute the standard deviation of the sub-arraysexpr_arr_std
Compute the sum of the sub-arraysexpr_arr_sum
Convert an Array column into a List column with the same inner data typeexpr_arr_to_list
Get the unique values in every sub-arrayexpr_arr_unique
Compute the variance of the sub-arraysexpr_arr_var
Check if binaries contain a binary substringexpr_bin_contains
Decode values using the provided encodingexpr_bin_decode
Encode a value using the provided encodingexpr_bin_encode
Check if string values end with a binary substringexpr_bin_ends_with
Get the size of binary values in the given unitexpr_bin_size
Check if values start with a binary substringexpr_bin_starts_with
Get the categories stored in this data typeexpr_cat_get_categories
Set Orderingexpr_cat_set_ordering
Offset by 'n' business days.expr_dt_add_business_days
Base offset from UTCexpr_dt_base_utc_offset
Change time unitexpr_dt_cast_time_unit
Extract the century from underlying representationexpr_dt_century
Combine Date and Timeexpr_dt_combine
Convert to given time zone for an expression of type Datetimeexpr_dt_convert_time_zone
Extract date from date(time)expr_dt_date
Extract day from underlying Date representationexpr_dt_day
Daylight savings offset from UTCexpr_dt_dst_offset
Get epoch of given Datetimeexpr_dt_epoch
Extract hour from underlying Datetime representationexpr_dt_hour
Determine whether the year of the underlying date is a leap yearexpr_dt_is_leap_year
Extract ISO year from underlying Date representationexpr_dt_iso_year
Extract microseconds from underlying Datetime representationexpr_dt_microsecond
Extract milliseconds from underlying Datetime representationexpr_dt_millisecond
Extract minute from underlying Datetime representationexpr_dt_minute
Extract month from underlying Date representationexpr_dt_month
Roll forward to the last day of the monthexpr_dt_month_end
Roll backward to the first day of the monthexpr_dt_month_start
Extract nanoseconds from underlying Datetime representationexpr_dt_nanosecond
Offset a date by a relative time offsetexpr_dt_offset_by
Extract ordinal day from underlying Date representationexpr_dt_ordinal_day
Extract quarter from underlying Date representationexpr_dt_quarter
Replace time zone for an expression of type Datetimeexpr_dt_replace_time_zone
Round datetimeexpr_dt_round
Extract seconds from underlying Datetime representationexpr_dt_second
Convert a Date/Time/Datetime/Duration column into a String column with the given formatexpr_dt_strftime
Extract timeexpr_dt_time
Get timestamp in the given time unitexpr_dt_timestamp
Convert a Date/Time/Datetime/Duration column into a String column with the given formatexpr_dt_to_string
Extract the days from a Duration typeexpr_dt_total_days
Extract the hours from a Duration typeexpr_dt_total_hours
Extract the microseconds from a Duration typeexpr_dt_total_microseconds
Extract the milliseconds from a Duration typeexpr_dt_total_milliseconds
Extract the minutes from a Duration typeexpr_dt_total_minutes
Extract the nanoseconds from a Duration typeexpr_dt_total_nanoseconds
Extract the seconds from a Duration typeexpr_dt_total_seconds
Truncate datetimeexpr_dt_truncate
Extract week from underlying Date representationexpr_dt_week
Extract weekday from underlying Date representationexpr_dt_weekday
Set time unit of a Series of dtype Datetime or Durationexpr_dt_with_time_unit
Extract year from underlying Date representationexpr_dt_year
Evaluate whether all boolean values in a sub-list are trueexpr_list_all
Evaluate whether any boolean value in a sub-list is trueexpr_list_any
Retrieve the index of the maximum value in every sub-listexpr_list_arg_max
Retrieve the index of the minimum value in every sub-listexpr_list_arg_min
Concat the lists into a new listexpr_list_concat
Check if sub-lists contains a given valueexpr_list_contains
Count how often a value produced occursexpr_list_count_matches
Compute difference between sub-list valuesexpr_list_diff
Drop all null values in every sub-listexpr_list_drop_nulls
Run any polars expression on the sub-lists' valuesexpr_list_eval
Returns a column with a separate row for every list elementexpr_list_explode
Get the first value of the sub-listsexpr_list_first
Get several values by index in every sub-listexpr_list_gather
Take every 'n'-th value starting from offset in sub-listsexpr_list_gather_every
Get the value by index in every sub-listexpr_list_get
Slice the first 'n' values of every sub-listexpr_list_head
Join elements of every sub-listexpr_list_join
Get the last value of the sub-listsexpr_list_last
Return the number of elements in each sub-listexpr_list_len
Compute the maximum value in every sub-listexpr_list_max
Compute the mean value in every sub-listexpr_list_mean
Compute the median in every sub-listexpr_list_median
Compute the miminum value in every sub-listexpr_list_min
Count the number of unique values in every sub-listsexpr_list_n_unique
Reverse values in every sub-listexpr_list_reverse
Sample values from every sub-listexpr_list_sample
Compute the set difference between elements of a list and other elementsexpr_list_set_difference
Compute the intersection between elements of a list and other elementsexpr_list_set_intersection
Compute the set symmetric difference between elements of a list and other elementsexpr_list_set_symmetric_difference
Compute the union of elements of a list and other elementsexpr_list_set_union
Shift list values by the given number of indicesexpr_list_shift
Slice every sub-listexpr_list_slice
Sort values in every sub-listexpr_list_sort
Compute the standard deviation in every sub-listexpr_list_std
Sum all elements in every sub-listexpr_list_sum
Slice the last 'n' values of every sub-listexpr_list_tail
Convert a List column into an Array column with the same inner data typeexpr_list_to_array
Get unique values in a listexpr_list_unique
Compute the variance in every sub-listexpr_list_var
Indicate if this expression is the same as another expressionexpr_meta_eq
Indicate if this expression expands into multiple expressionsexpr_meta_has_multiple_outputs
Indicate if this expression is a basic (non-regex) unaliased columnexpr_meta_is_column
Indicate if this expression only selects columns (optionally with aliasing)expr_meta_is_column_selection
Indicate if this expression expands to columns that match a regex patternexpr_meta_is_regex_projection
Indicate if this expression is not the same as another expressionexpr_meta_ne
Get the column name that this expression would produceexpr_meta_output_name
Pop the latest expression and return the input(s) of the popped expressionexpr_meta_pop
Get a list with the root column nameexpr_meta_root_names
Serialize this expression to a string in binary or JSON formatexpr_meta_serialize
Format the expression as a treeexpr_meta_tree_format
Undo any renaming operation like 'alias' or 'name$keep'expr_meta_undo_aliases
Check if string contains a substring that matches a patternexpr_str_contains
Use the aho-corasick algorithm to find matchesexpr_str_contains_any
Count all successive non-overlapping regex matchesexpr_str_count_matches
Decode a value using the provided encodingexpr_str_decode
Encode a value using the provided encodingexpr_str_encode
Check if string ends with a regexexpr_str_ends_with
Extract the target capture group from provided patternsexpr_str_extract
Extract all matches for the given regex patternexpr_str_extract_all
Extract all capture groups for the given regex patternexpr_str_extract_groups
Use the aho-corasick algorithm to extract matchesexpr_str_extract_many
Return the index position of the first substring matching a patternexpr_str_find
Return the first n characters of each stringexpr_str_head
Vertically concatenate the string values in the column to a single string value.expr_str_join
Parse string values as JSON.expr_str_json_decode
Extract the first match of JSON string with the provided JSONPath expressionexpr_str_json_path_match
Get the number of bytes in stringsexpr_str_len_bytes
Get the number of characters in stringsexpr_str_len_chars
Left justify stringsexpr_str_pad_end
Right justify stringsexpr_str_pad_start
Replace first matching regex/literal substring with a new string valueexpr_str_replace
Replace all matching regex/literal substrings with a new string valueexpr_str_replace_all
Use the aho-corasick algorithm to replace many matchesexpr_str_replace_many
Returns string values in reversed orderexpr_str_reverse
Create subslices of the string values of a String Seriesexpr_str_slice
Split the string by a substringexpr_str_split
Split the string by a substring using 'n' splitsexpr_str_split_exact
Split the string by a substring, restricted to returning at most 'n' itemsexpr_str_splitn
Check if string starts with a regexexpr_str_starts_with
Strip leading and trailing charactersexpr_str_strip_chars
Strip trailing charactersexpr_str_strip_chars_end
Strip leading charactersexpr_str_strip_chars_start
Convert a String column into a Date/Datetime/Time column.expr_str_strptime
Return the last n characters of each stringexpr_str_tail
Convert a String column into a Date columnexpr_str_to_date
Convert a String column into a Datetime columnexpr_str_to_datetime
Convert a String column into an Int64 column with base radixexpr_str_to_integer
Convert a string to lowercaseexpr_str_to_lowercase
Convert a String column into a Time columnexpr_str_to_time
Convert a string to uppercaseexpr_str_to_uppercase
Fills the string with zeroes.expr_str_zfill
Retrieve one or multiple Struct field(s) as a new Seriesexpr_struct_field
Convert this struct to a string column with json valuesexpr_struct_json_encode
Rename the fields of the structexpr_struct_rename_fields
Expand the struct into its individual fieldsexpr_struct_unnest
Add or overwrite fields of this structexpr_struct_with_fields
Materialize this LazyFrame into a DataFramelazyframe__collect
Select and modify columns of a LazyFramelazyframe__select
Modify/append column(s) of a LazyFramelazyframe__with_columns
Polars top-level function namespacepl
Either return an expression representing all columns, or evaluate a bitwise AND operationpl__all
Apply the AND logical horizontally across columnspl__all_horizontal
Evaluate a bitwise OR operationpl__any
Apply the OR logical horizontally across columnspl__any_horizontal
Folds the columns from left to right, keeping the first non-null valuepl__coalesce
Create an expression representing column(s) in a DataFramepl__col
Combine multiple DataFrames, LazyFrames, or Series into a single objectpl__concat
Horizontally concatenate columns into a single list columnpl__concat_list
Cumulatively sum all valuespl__cum_sum
Polars DataFrame class ('polars_data_frame')DataFrame pl__DataFrame polars_data_frame
Generate a date rangepl__date_range
Create a column of date rangespl__date_ranges
Create a Polars literal expression of type Datetimepl__datetime
Generate a datetime rangepl__datetime_range
Generate a list containing a datetime rangepl__datetime_ranges
Create polars Duration from distinct time componentspl__duration
Alias for an element being evaluated in an eval expressionpl__element
Get the first column of the contextpl__first
Generate a range of integerspl__int_range
Generate a range of integers for each row of the input columnspl__int_ranges
Get the last column of the contextpl__last
Polars LazyFrame class ('polars_lazy_frame')LazyFrame pl__LazyFrame polars_lazy_frame
Return an expression representing a literal valuepl__lit
Get the maximum valuepl__max
Get the maximum value horizontally across columnspl__max_horizontal
Compute the mean horizontally across columnspl__mean_horizontal
Get the minimum valuepl__min
Get the minimum value horizontally across columnspl__min_horizontal
Get the nth column(s) of the contextpl__nth
New DataFrame from CSVpl__read_csv
Read into a DataFrame from Arrow IPC (Feather v2) filepl__read_ipc
Read into a DataFrame from Arrow IPC stream formatpl__read_ipc_stream
Read into a DataFrame from NDJSON filepl__read_ndjson
Read into a DataFrame from Parquet filepl__read_parquet
Lazily read from a CSV file or multiple files via glob patternspl__scan_csv
Lazily read from an Arrow IPC (Feather v2) file or multiple files via glob patternspl__scan_ipc
Lazily read from a local or cloud-hosted NDJSON file(s)pl__scan_ndjson
Lazily read from a local or cloud-hosted parquet file (or files)pl__scan_parquet
Polars Series class ('polars_series')pl__Series polars_series Series
Print out the version of Polars and its optional dependenciespl__show_versions
Collect columns into a struct columnpl__struct
Sum all valuespl__sum
Compute the sum horizontally across columnspl__sum_horizontal
Generate a time rangepl__time_range
Create a column of time rangespl__time_ranges
Registering custom functionality with a polars Seriespl_api_register_series_namespace
Polars DataType class ('polars_dtype')DataType pl__Array pl__Categorical pl__Datetime pl__Decimal pl__Duration pl__Enum pl__List pl__Struct polars_dtype
The Polars duration string languagepolars_duration_string
Polars expression class ('polars_expr')Expr expression polars_expr
Get the number of chunks that this Series containsseries__n_chunks
Cast this Series to a DataFrameseries__to_frame
Export the Series as an R vectorseries__to_r_vector
Convert this struct Series to a DataFrame with a separate column for each fieldseries_struct_unnest