Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/pola-rs/polars
/ functions
Functions
28,113 in github.com/pola-rs/polars
⨍
Functions
28,113
◇
Types & classes
2,675
↳
Endpoints
130
↓ 7,429 callers
Function
new
()
crates/polars/tests/it/arrow/buffer/immutable.rs:4
↓ 5,974 callers
Method
unwrap
(&self)
crates/polars-plan/src/plans/expr_ir.rs:43
↓ 5,564 callers
Method
col
(name: PlSmallStr)
crates/polars-plan/src/plans/aexpr/mod.rs:287
↓ 4,070 callers
Method
map
Apply a function/closure once the logical plan get executed. This function is very similar to [`Expr::apply`], but differs in how it handles aggregat
crates/polars-plan/src/dsl/mod.rs:467
↓ 3,347 callers
Function
assert_frame_equal
Assert that the left and right frame are equal. Raises a detailed `AssertionError` if the frames differ. This function is intended for u
py-polars/src/polars/testing/asserts/frame.py:36
↓ 3,130 callers
Method
select
Select columns from this DataFrame. Parameters ---------- *exprs Column(s) to select, specified as posit
py-polars/src/polars/dataframe/frame.py:10397
↓ 2,962 callers
Method
clone
(&self)
crates/polars-python/src/dataframe/general.rs:433
↓ 2,663 callers
Method
collect
(self)
py-polars/tests/conftest.py:79
↓ 1,847 callers
Function
datetime
(s: &Column)
crates/polars-expr/src/dispatch/datetime.rs:117
↓ 1,753 callers
Function
assert_series_equal
Assert that the left and right Series are equal. Raises a detailed `AssertionError` if the Series differ. This function is intended for
py-polars/src/polars/testing/asserts/series.py:30
↓ 1,381 callers
Function
default
default branch
crates/polars-expr/src/dispatch/misc.rs:588
↓ 1,310 callers
Function
col
(name: &str)
crates/polars-python/src/functions/lazy.rs:114
↓ 1,302 callers
Method
alias
Rename the expression. Parameters ---------- name The new name. See Also --------
py-polars/src/polars/expr/expr.py:906
↓ 1,263 callers
Method
len
(&self)
crates/polars-utils/src/arena.rs:75
↓ 1,134 callers
Function
date
(s: &Column)
crates/polars-expr/src/dispatch/datetime.rs:87
↓ 1,110 callers
Method
collect
Execute all the lazy operations and collect them into a [`DataFrame`]. The query is optimized prior to execution. # Example ```rust use polars_core
crates/polars-lazy/src/frame/mod.rs:736
↓ 1,086 callers
Method
push
Push an another [`RowWidths`] into the widths
crates/polars-row/src/widths.rs:37
↓ 1,042 callers
Method
to_list
Convert this Series to a Python list. This operation copies data. Examples -------- >>> s = pl.Series("a",
py-polars/src/polars/series/series.py:4712
↓ 1,000 callers
Method
iter
(&self)
crates/polars-row/src/row.rs:162
↓ 964 callers
Method
lazy
Start a lazy query from this point. This returns a `LazyFrame` object. Operations on a `LazyFrame` are not executed until this is tr
py-polars/src/polars/dataframe/frame.py:10360
↓ 961 callers
Function
with_capacity
()
crates/polars/tests/it/arrow/array/list/mutable.rs:35
↓ 878 callers
Method
lit
(lit: LiteralValue, arena: &mut Arena<AExpr>)
crates/polars-plan/src/plans/aexpr/builder.rs:26
↓ 877 callers
Method
with_columns
Add columns to this DataFrame. Added columns will replace existing columns with the same name. Parameters ---------
py-polars/src/polars/dataframe/frame.py:10518
↓ 849 callers
Method
to_dict
(self, *, as_series: Literal[True] = ...)
py-polars/src/polars/dataframe/frame.py:1807
↓ 831 callers
Function
from
()
crates/polars/tests/it/arrow/array/utf8/mod.rs:75
↓ 818 callers
Method
clone
(&self)
crates/polars-plan/src/plans/schema.rs:333
↓ 752 callers
Method
cast
r""" Cast between data types. Parameters ---------- dtype DataType to cast to. strict
py-polars/src/polars/expr/expr.py:2104
↓ 748 callers
Method
agg
Run any polars aggregation expression against the list' elements. Parameters ---------- expr Expression
py-polars/src/polars/series/list.py:1020
↓ 746 callers
Method
as_ref
(&self)
crates/polars-plan/src/plans/ir/mod.rs:205
↓ 688 callers
Method
clone
(&self)
crates/polars-core/src/chunked_array/mod.rs:976
↓ 665 callers
Method
filter
Filter the expression based on one or more predicate expressions. The original order of the remaining elements is preserved.
py-polars/src/polars/expr/expr.py:4791
↓ 634 callers
Method
sort
Sort this column. When used in a projection/selection context, the whole column is sorted. When used in a group by context,
py-polars/src/polars/expr/expr.py:2153
↓ 573 callers
Function
len
Return the number of rows in the context. This is similar to `COUNT(*)` in SQL. Returns ------- Expr Expression of data
py-polars/src/polars/functions/len.py:21
↓ 572 callers
Method
alias
Rename Column.
crates/polars-plan/src/dsl/mod.rs:137
↓ 524 callers
Method
into_series
(self, name: PlSmallStr)
crates/polars-core/src/scalar/mod.rs:90
↓ 520 callers
Method
values
The values of the [`MapScalar`]
crates/polars-arrow/src/scalar/map.rs:49
↓ 497 callers
Method
clone
(&self)
crates/polars-core/src/chunked_array/logical/mod.rs:44
↓ 489 callers
Function
wrap_expr
(pyexpr: PyExpr)
py-polars/src/polars/_utils/wrap.py:24
↓ 488 callers
Method
into_column
Turn a scalar into a column with `length=1`.
crates/polars-core/src/scalar/mod.rs:95
↓ 473 callers
Method
dtype
Returns the [`DataType`] of the column.
crates/polars-io/src/predicates.rs:241
↓ 462 callers
Method
as_materialized_series
(&self)
crates/polars-core/src/frame/column/mod.rs:104
↓ 457 callers
Method
cast
Cast expression to another data type.
crates/polars-plan/src/dsl/mod.rs:323
↓ 448 callers
Method
map
(mut self, f: F)
crates/polars-stream/src/morsel.rs:137
↓ 438 callers
Method
unwrap
Return the data inside this wrapper. # Panics If the `StreamState` was `Waiting`.
crates/polars-arrow/src/io/ipc/read/stream.rs:79
↓ 431 callers
Method
into_iter
(self)
crates/polars-plan/src/dsl/iter.rs:75
↓ 425 callers
Method
item
Get the single value. This raises an error if there is not exactly one value. Parameters ---------- allow_e
py-polars/src/polars/expr/expr.py:3898
↓ 423 callers
Method
downcast_iter
(&self)
crates/polars-core/src/chunked_array/ops/downcast.rs:64
↓ 411 callers
Function
lit
(value: &Bound<'_, PyAny>, allow_object: bool, is_scalar: bool)
crates/polars-python/src/functions/lazy.rs:466
↓ 399 callers
Method
concat
Concat the arrays in a Series dtype List in linear time. Parameters ---------- other Columns to concat i
py-polars/src/polars/series/list.py:400
↓ 389 callers
Method
lazy
(&self)
crates/polars-python/src/dataframe/general.rs:477
↓ 383 callers
Method
all
Return whether all values in the column are `True`. Only works on columns of data type :class:`Boolean`. .. note::
py-polars/src/polars/expr/expr.py:694
↓ 383 callers
Method
explain
Create a string representation of the query plan. Different optimizations can be turned on or off. Parameters -----
py-polars/src/polars/lazyframe/frame.py:1283
↓ 376 callers
Method
to_series
(self, *args: Any, **kwargs: Any)
py-polars/src/polars/_typing.py:136
↓ 373 callers
Method
iter
(&self)
crates/polars-plan/src/dsl/scan_sources.rs:241
↓ 373 callers
Method
iter
Iterate over [`Series`] as [`AnyValue`]. # Panics This will panic if the array is not rechunked first.
crates/polars-core/src/series/iterator.rs:81
↓ 371 callers
Method
read
(&mut self, mut buf: &mut [u8])
crates/polars-python/src/file.rs:162
↓ 364 callers
Method
get_unchecked
(&self, idx: Node)
crates/polars-utils/src/arena.rs:113
↓ 359 callers
Method
push
(&mut self, value: i64, is_valid: bool)
crates/polars-parquet/src/arrow/read/deserialize/nested_utils.rs:151
↓ 356 callers
Method
scan_parquet
Create a LazyFrame directly from a parquet scan.
crates/polars-lazy/src/scan/parquet.rs:169
↓ 355 callers
Method
seek
(&mut self, pos: SeekFrom)
crates/polars-python/src/file.rs:254
↓ 349 callers
Method
len
(&self)
crates/polars-expr/src/hot_groups/fixed_index_table.rs:46
↓ 348 callers
Method
str
Get the [`string::StringNameSpace`]
crates/polars-plan/src/dsl/mod.rs:1634
↓ 346 callers
Method
len
(&self)
crates/polars-compute/src/rolling/window.rs:79
↓ 344 callers
Method
len
(self, arena: &mut Arena<AExpr>)
crates/polars-plan/src/plans/aexpr/builder.rs:186
↓ 343 callers
Method
sum
Get sum value. Notes ----- * Dtypes in {Int8, UInt8, Int16, UInt16} are cast to Int64 before summing to pr
py-polars/src/polars/expr/expr.py:3559
↓ 336 callers
Method
len
Get the number of schema entries. Examples -------- >>> s = pl.Schema({"x": pl.Int32(), "y": pl.List(pl.String)})
py-polars/src/polars/schema.py:272
↓ 332 callers
Function
take
()
crates/polars-core/src/chunked_array/mod.rs:1136
↓ 330 callers
Method
len
(&self)
crates/polars-core/src/chunked_array/ops/downcast.rs:38
↓ 324 callers
Method
to_string
Convert from Date/Time/Datetime into String with the given format. See [chrono strftime/strptime](https://docs.rs/chrono/0.4.19/chrono/format/strftime
crates/polars-plan/src/dsl/dt.rs:25
↓ 322 callers
Method
physical
()
crates/polars-core/src/series/proptest.rs:55
↓ 321 callers
Method
group_by
(self, *args: Any, **kwargs: Any)
py-polars/src/polars/_typing.py:97
↓ 311 callers
Method
as_slice
(&self)
crates/polars-arrow/src/offset.rs:216
↓ 309 callers
Method
collect_schema
Get an ordered mapping of column names to their data type. This is an alias for the :attr:`schema` property. See Also
py-polars/src/polars/dataframe/frame.py:1653
↓ 297 callers
Function
time
(s: &Column)
crates/polars-expr/src/dispatch/datetime.rs:67
↓ 293 callers
Function
list
Select all list columns. .. warning:: This functionality is considered **unstable**. It may be changed at any point without
py-polars/src/polars/selectors.py:1379
↓ 293 callers
Method
rows
(self, *, named: Literal[False] = ...)
py-polars/src/polars/dataframe/frame.py:11829
↓ 292 callers
Method
slice
Get a slice of this expression. Parameters ---------- offset Start index. Negative indexing is supported
py-polars/src/polars/expr/expr.py:1444
↓ 291 callers
Method
boxed
(self)
crates/polars-core/src/datatypes/field.rs:155
↓ 289 callers
Method
as_any
(&self)
crates/polars-core/src/chunked_array/mod.rs:161
↓ 289 callers
Method
join
Join all string items in a sublist and place a separator between them. This errors if inner type of list `!= String`. Param
py-polars/src/polars/series/list.py:522
↓ 287 callers
Method
name
(&self)
crates/polars-ooc/src/spill_context.rs:366
↓ 283 callers
Method
array
(&self)
crates/polars-core/src/frame/column/mod.rs:435
↓ 282 callers
Method
get
(&self, node: Node)
crates/polars-plan/src/plans/optimizer/sortedness.rs:44
↓ 280 callers
Method
as_str
(&self)
crates/polars-utils/src/pl_str.rs:66
↓ 278 callers
Method
validity
(&self)
crates/polars-core/src/chunked_array/object/mod.rs:208
↓ 270 callers
Method
contains
Check if the list array contain an element
crates/polars-plan/src/dsl/list.rs:220
↓ 266 callers
Method
select
Select columns from this LazyFrame. Parameters ---------- *exprs Column(s) to select, specified as posit
py-polars/src/polars/lazyframe/frame.py:5227
↓ 265 callers
Method
iter
(&self)
crates/polars-stream/src/metrics.rs:168
↓ 262 callers
Method
iter
Returns an iterator of `Option<&T>` over every element of this array.
crates/polars-core/src/chunked_array/object/mod.rs:89
↓ 256 callers
Method
is_none
(&self)
crates/polars-plan/src/plans/expr_ir.rs:58
↓ 254 callers
Method
ok
(saved: &Mutex<Option<E>>)
crates/polars-core/src/chunked_array/from_iterator_par.rs:294
↓ 254 callers
Method
to_frame
(self, *, eager: Literal[False])
py-polars/src/polars/schema.py:240
↓ 254 callers
Method
write_parquet
Write to Apache Parquet file. Parameters ---------- file File path or writable file-like object to which
py-polars/src/polars/dataframe/frame.py:4135
↓ 253 callers
Method
for_each
(&'a self, mut op: F)
crates/polars-core/src/chunked_array/ops/for_each.rs:7
↓ 250 callers
Method
group_by
Start a group by operation. Parameters ---------- *by Column(s) to group by. Accepts expression input. S
py-polars/src/polars/dataframe/frame.py:7139
↓ 247 callers
Method
clone
(&self)
crates/polars-io/src/csv/write/write_impl.rs:26
↓ 246 callers
Method
get
(&self, i: usize)
crates/polars-row/src/row.rs:207
↓ 241 callers
Method
iter_mut
(&mut self)
crates/polars-schema/src/schema.rs:348
↓ 239 callers
Method
over
Compute expressions over the given groups. This expression is similar to performing a group by aggregation and joining the r
py-polars/src/polars/expr/expr.py:3943
↓ 238 callers
Method
finish
Finish builder
crates/polars-lazy/src/frame/mod.rs:2269
next →
1–100 of 28,113, ranked by callers