MCPcopy Index your code

hub / github.com/pola-rs/polars / functions

Functions28,113 in github.com/pola-rs/polars

↓ 7,429 callersFunctionnew
()
crates/polars/tests/it/arrow/buffer/immutable.rs:4
↓ 5,974 callersMethodunwrap
(&self)
crates/polars-plan/src/plans/expr_ir.rs:43
↓ 5,564 callersMethodcol
(name: PlSmallStr)
crates/polars-plan/src/plans/aexpr/mod.rs:287
↓ 4,070 callersMethodmap
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 callersFunctionassert_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 callersMethodselect
Select columns from this DataFrame. Parameters ---------- *exprs Column(s) to select, specified as posit
py-polars/src/polars/dataframe/frame.py:10397
↓ 2,962 callersMethodclone
(&self)
crates/polars-python/src/dataframe/general.rs:433
↓ 2,663 callersMethodcollect
(self)
py-polars/tests/conftest.py:79
↓ 1,847 callersFunctiondatetime
(s: &Column)
crates/polars-expr/src/dispatch/datetime.rs:117
↓ 1,753 callersFunctionassert_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 callersFunctiondefault
default branch
crates/polars-expr/src/dispatch/misc.rs:588
↓ 1,310 callersFunctioncol
(name: &str)
crates/polars-python/src/functions/lazy.rs:114
↓ 1,302 callersMethodalias
Rename the expression. Parameters ---------- name The new name. See Also --------
py-polars/src/polars/expr/expr.py:906
↓ 1,263 callersMethodlen
(&self)
crates/polars-utils/src/arena.rs:75
↓ 1,134 callersFunctiondate
(s: &Column)
crates/polars-expr/src/dispatch/datetime.rs:87
↓ 1,110 callersMethodcollect
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 callersMethodpush
Push an another [`RowWidths`] into the widths
crates/polars-row/src/widths.rs:37
↓ 1,042 callersMethodto_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 callersMethoditer
(&self)
crates/polars-row/src/row.rs:162
↓ 964 callersMethodlazy
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 callersFunctionwith_capacity
()
crates/polars/tests/it/arrow/array/list/mutable.rs:35
↓ 878 callersMethodlit
(lit: LiteralValue, arena: &mut Arena<AExpr>)
crates/polars-plan/src/plans/aexpr/builder.rs:26
↓ 877 callersMethodwith_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 callersMethodto_dict
(self, *, as_series: Literal[True] = ...)
py-polars/src/polars/dataframe/frame.py:1807
↓ 831 callersFunctionfrom
()
crates/polars/tests/it/arrow/array/utf8/mod.rs:75
↓ 818 callersMethodclone
(&self)
crates/polars-plan/src/plans/schema.rs:333
↓ 752 callersMethodcast
r""" Cast between data types. Parameters ---------- dtype DataType to cast to. strict
py-polars/src/polars/expr/expr.py:2104
↓ 748 callersMethodagg
Run any polars aggregation expression against the list' elements. Parameters ---------- expr Expression
py-polars/src/polars/series/list.py:1020
↓ 746 callersMethodas_ref
(&self)
crates/polars-plan/src/plans/ir/mod.rs:205
↓ 688 callersMethodclone
(&self)
crates/polars-core/src/chunked_array/mod.rs:976
↓ 665 callersMethodfilter
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 callersMethodsort
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 callersFunctionlen
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 callersMethodalias
Rename Column.
crates/polars-plan/src/dsl/mod.rs:137
↓ 524 callersMethodinto_series
(self, name: PlSmallStr)
crates/polars-core/src/scalar/mod.rs:90
↓ 520 callersMethodvalues
The values of the [`MapScalar`]
crates/polars-arrow/src/scalar/map.rs:49
↓ 497 callersMethodclone
(&self)
crates/polars-core/src/chunked_array/logical/mod.rs:44
↓ 489 callersFunctionwrap_expr
(pyexpr: PyExpr)
py-polars/src/polars/_utils/wrap.py:24
↓ 488 callersMethodinto_column
Turn a scalar into a column with `length=1`.
crates/polars-core/src/scalar/mod.rs:95
↓ 473 callersMethoddtype
Returns the [`DataType`] of the column.
crates/polars-io/src/predicates.rs:241
↓ 462 callersMethodas_materialized_series
(&self)
crates/polars-core/src/frame/column/mod.rs:104
↓ 457 callersMethodcast
Cast expression to another data type.
crates/polars-plan/src/dsl/mod.rs:323
↓ 448 callersMethodmap
(mut self, f: F)
crates/polars-stream/src/morsel.rs:137
↓ 438 callersMethodunwrap
Return the data inside this wrapper. # Panics If the `StreamState` was `Waiting`.
crates/polars-arrow/src/io/ipc/read/stream.rs:79
↓ 431 callersMethodinto_iter
(self)
crates/polars-plan/src/dsl/iter.rs:75
↓ 425 callersMethoditem
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 callersMethoddowncast_iter
(&self)
crates/polars-core/src/chunked_array/ops/downcast.rs:64
↓ 411 callersFunctionlit
(value: &Bound<'_, PyAny>, allow_object: bool, is_scalar: bool)
crates/polars-python/src/functions/lazy.rs:466
↓ 399 callersMethodconcat
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 callersMethodlazy
(&self)
crates/polars-python/src/dataframe/general.rs:477
↓ 383 callersMethodall
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 callersMethodexplain
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 callersMethodto_series
(self, *args: Any, **kwargs: Any)
py-polars/src/polars/_typing.py:136
↓ 373 callersMethoditer
(&self)
crates/polars-plan/src/dsl/scan_sources.rs:241
↓ 373 callersMethoditer
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 callersMethodread
(&mut self, mut buf: &mut [u8])
crates/polars-python/src/file.rs:162
↓ 364 callersMethodget_unchecked
(&self, idx: Node)
crates/polars-utils/src/arena.rs:113
↓ 359 callersMethodpush
(&mut self, value: i64, is_valid: bool)
crates/polars-parquet/src/arrow/read/deserialize/nested_utils.rs:151
↓ 356 callersMethodscan_parquet
Create a LazyFrame directly from a parquet scan.
crates/polars-lazy/src/scan/parquet.rs:169
↓ 355 callersMethodseek
(&mut self, pos: SeekFrom)
crates/polars-python/src/file.rs:254
↓ 349 callersMethodlen
(&self)
crates/polars-expr/src/hot_groups/fixed_index_table.rs:46
↓ 348 callersMethodstr
Get the [`string::StringNameSpace`]
crates/polars-plan/src/dsl/mod.rs:1634
↓ 346 callersMethodlen
(&self)
crates/polars-compute/src/rolling/window.rs:79
↓ 344 callersMethodlen
(self, arena: &mut Arena<AExpr>)
crates/polars-plan/src/plans/aexpr/builder.rs:186
↓ 343 callersMethodsum
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 callersMethodlen
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 callersFunctiontake
()
crates/polars-core/src/chunked_array/mod.rs:1136
↓ 330 callersMethodlen
(&self)
crates/polars-core/src/chunked_array/ops/downcast.rs:38
↓ 324 callersMethodto_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 callersMethodphysical
()
crates/polars-core/src/series/proptest.rs:55
↓ 321 callersMethodgroup_by
(self, *args: Any, **kwargs: Any)
py-polars/src/polars/_typing.py:97
↓ 311 callersMethodas_slice
(&self)
crates/polars-arrow/src/offset.rs:216
↓ 309 callersMethodcollect_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 callersFunctiontime
(s: &Column)
crates/polars-expr/src/dispatch/datetime.rs:67
↓ 293 callersFunctionlist
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 callersMethodrows
(self, *, named: Literal[False] = ...)
py-polars/src/polars/dataframe/frame.py:11829
↓ 292 callersMethodslice
Get a slice of this expression. Parameters ---------- offset Start index. Negative indexing is supported
py-polars/src/polars/expr/expr.py:1444
↓ 291 callersMethodboxed
(self)
crates/polars-core/src/datatypes/field.rs:155
↓ 289 callersMethodas_any
(&self)
crates/polars-core/src/chunked_array/mod.rs:161
↓ 289 callersMethodjoin
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 callersMethodname
(&self)
crates/polars-ooc/src/spill_context.rs:366
↓ 283 callersMethodarray
(&self)
crates/polars-core/src/frame/column/mod.rs:435
↓ 282 callersMethodget
(&self, node: Node)
crates/polars-plan/src/plans/optimizer/sortedness.rs:44
↓ 280 callersMethodas_str
(&self)
crates/polars-utils/src/pl_str.rs:66
↓ 278 callersMethodvalidity
(&self)
crates/polars-core/src/chunked_array/object/mod.rs:208
↓ 270 callersMethodcontains
Check if the list array contain an element
crates/polars-plan/src/dsl/list.rs:220
↓ 266 callersMethodselect
Select columns from this LazyFrame. Parameters ---------- *exprs Column(s) to select, specified as posit
py-polars/src/polars/lazyframe/frame.py:5227
↓ 265 callersMethoditer
(&self)
crates/polars-stream/src/metrics.rs:168
↓ 262 callersMethoditer
Returns an iterator of `Option<&T>` over every element of this array.
crates/polars-core/src/chunked_array/object/mod.rs:89
↓ 256 callersMethodis_none
(&self)
crates/polars-plan/src/plans/expr_ir.rs:58
↓ 254 callersMethodok
(saved: &Mutex<Option<E>>)
crates/polars-core/src/chunked_array/from_iterator_par.rs:294
↓ 254 callersMethodto_frame
(self, *, eager: Literal[False])
py-polars/src/polars/schema.py:240
↓ 254 callersMethodwrite_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 callersMethodfor_each
(&'a self, mut op: F)
crates/polars-core/src/chunked_array/ops/for_each.rs:7
↓ 250 callersMethodgroup_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 callersMethodclone
(&self)
crates/polars-io/src/csv/write/write_impl.rs:26
↓ 246 callersMethodget
(&self, i: usize)
crates/polars-row/src/row.rs:207
↓ 241 callersMethoditer_mut
(&mut self)
crates/polars-schema/src/schema.rs:348
↓ 239 callersMethodover
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 callersMethodfinish
Finish builder
crates/polars-lazy/src/frame/mod.rs:2269
next →1–100 of 28,113, ranked by callers