polars の API リファレンス
polars (pola-rs/polars) の公開 API 400 件 —— クラス 85、関数 85、メソッド 230。実際のソースを静的解析して抽出した正確なシグネチャを掲載しています。
リポジトリ: pola-rs/polars
| 種別 | 件数 |
|---|---|
| クラス | 85 |
| 関数 | 85 |
| メソッド | 230 |
API 一覧
func
py-polars.debug.launch.launch_debugging() -> NoneDebug Rust files via Python.
func
py-polars.runtime.template.template(s:str, rt:str) -> strApply the runtime template substitutions.
method
py-polars.src.polars._typing.Cursor.fetchall(*args:Any, **kwargs:Any) -> AnyFetch all results.
method
py-polars.src.polars._typing.Cursor.fetchmany(*args:Any, **kwargs:Any) -> AnyFetch results in batches.
class
py-polars.src.polars._typing.SeriesBuffersUnderlying buffers of a Series.
method
py-polars.src.polars._utils.cache.LRUCache.clear() -> NoneClear the cache, removing all items.
method
py-polars.src.polars._utils.cache.LRUCache.keys() -> KeysView[K]Return an iterable view of the cache's keys.
method
py-polars.src.polars._utils.cache.LRUCache.pop(key:K, default:D | NoDefault=NO_DEFAULT) -> V | DRemove specified key from the cache and return the associated value.
method
py-polars.src.polars._utils.cache.LRUCache.values() -> ValuesView[V]Return an iterable view of the cache's values.
func
py-polars.src.polars._utils.construction.other.coerce_arrow(array:pa.Array) -> pa.Array...
func
py-polars.src.polars._utils.construction.series.numpy_to_pyseries(name:str, values:np.ndarray[Any, Any], *strict:bool=True, *nan_to_null:bool=False) -> PySeriesConstruct a PySeries from a numpy array.
func
py-polars.src.polars._utils.construction.utils.get_first_non_none(values:Sequence[Any | None] | pl.Series) -> AnyReturn the first value from a sequence that isn't None.
func
py-polars.src.polars._utils.construction.utils.is_namedtuple(cls:Any, *annotated:bool=False) -> boolCheck if given class derives from NamedTuple.
func
py-polars.src.polars._utils.construction.utils.is_pydantic_model(value:Any) -> boolCheck if value derives from a pydantic.BaseModel.
func
py-polars.src.polars._utils.construction.utils.nt_unpack(obj:Any) -> AnyRecursively unpack a nested NamedTuple.
func
py-polars.src.polars._utils.convert.date_to_int(d:date) -> intConvert a Python time object to an integer.
func
py-polars.src.polars._utils.convert.datetime_to_int(dt:datetime, time_unit:TimeUnit) -> intConvert a Python datetime object to an integer.
func
py-polars.src.polars._utils.convert.negate_duration_string(duration:str) -> strNegate a Polars duration string.
func
py-polars.src.polars._utils.convert.time_to_int(t:time) -> intConvert a Python time object to an integer.
func
py-polars.src.polars._utils.convert.timedelta_to_int(td:timedelta, time_unit:TimeUnit) -> intConvert a Python timedelta object to an integer.
func
py-polars.src.polars._utils.convert.to_py_date(value:int | float) -> dateConvert an integer or float to a Python date object.
func
py-polars.src.polars._utils.convert.to_py_decimal(prec:int, value:str) -> DecimalConvert decimal components to a Python Decimal object.
func
py-polars.src.polars._utils.convert.to_py_time(value:int) -> timeConvert an integer to a Python time object.
func
py-polars.src.polars._utils.convert.to_py_timedelta(value:int | float, time_unit:TimeUnit) -> timedeltaConvert an integer or float to a Python timedelta object.
func
py-polars.src.polars._utils.deprecation.issue_deprecation_warning(message:str, *version:str='') -> NoneIssue a deprecation warning.
func
py-polars.src.polars._utils.nest_asyncio.manage_run(self)Set up the loop for running.
func
py-polars.src.polars._utils.parse.expr.parse_into_expression(input:IntoExpr, *str_as_lit:bool=False, *list_as_series:bool=False, *structify:bool=False, *dtype:PolarsDataType | None=None, *require_selector:bool=False) -> PyExprParse a single input into an expression.
func
py-polars.src.polars._utils.parse.expr.parse_into_list_of_expressions(*inputs:IntoExpr | Iterable[IntoExpr], **named_inputs:IntoExpr) -> list[PyExpr]Parse multiple inputs into a list of expressions.
func
py-polars.src.polars._utils.pycapsule.is_pycapsule(obj:Any) -> boolCheck if object looks like it supports the PyCapsule interface.
func
py-polars.src.polars._utils.pycapsule.pycapsule_to_frame(obj:Any, *schema:SchemaDefinition | None=None, *schema_overrides:SchemaDict | None=None, *rechunk:bool=False) -> DataFrameConvert PyCapsule object to DataFrame.
func
py-polars.src.polars._utils.reduce_balanced.reduce_balanced(function:Callable[[T, T], T], iterable:Iterable[T]) -> TApplies a reduction in a balanced tree pattern.
class
py-polars.src.polars._utils.slice.LazyPolarsSliceApply python slice object to Polars LazyFrame.
method
py-polars.src.polars._utils.slice.LazyPolarsSlice.apply(s:slice) -> LazyFrameApply a slice operation.
class
py-polars.src.polars._utils.slice.PolarsSliceApply Python slice object to Polars DataFrame or Series.
func
py-polars.src.polars._utils.unstable.issue_unstable_warning(message:str | None=None) -> NoneIssue a warning for use of unstable functionality.
func
py-polars.src.polars._utils.unstable.unstable() -> IdentityFunctionDecorator to mark a function as unstable.
func
py-polars.src.polars._utils.various.is_column(obj:Any) -> boolIndicate if the given object is a basic/unaliased column.
func
py-polars.src.polars._utils.various.is_str_sequence(val:object, *allow_str:bool=False, *include_series:bool=False) -> TypeGuard[Sequence[str]]Check that `val` is a sequence of strings.
func
py-polars.src.polars._utils.various.normalize_filepath(path:str | Path, *check_not_directory:bool=True) -> strCreate a string path, expanding the home directory if present.
func
py-polars.src.polars._utils.various.qualified_type_name(obj:Any, *qualify_polars:bool=False) -> strReturn the module-qualified name of the given object as a string.
func
py-polars.src.polars._utils.various.range_to_series(name:str, rng:range, dtype:PolarsDataType | None=None) -> pl.SeriesFast conversion of the given range to a Series.
func
py-polars.src.polars._utils.various.range_to_slice(rng:range) -> sliceReturn the given range as an equivalent slice.
func
py-polars.src.polars._utils.various.re_escape(s:str) -> strEscape a string for use in a Polars (Rust) regex.
func
py-polars.src.polars._utils.various.require_same_type(current:Any, other:Any) -> NoneRaise an error if the two arguments are not of the same type.
func
py-polars.src.polars._utils.various.warn_null_comparison(obj:Any) -> NoneWarn for possibly unintentional comparisons with None.
func
py-polars.src.polars._warnings.find_stacklevel() -> intFind the first place in the stack that is not inside Polars.
func
py-polars.src.polars._warnings.issue_warning(message:str, category:type[Warning], **kwargs:Any) -> NoneIssue a warning.
class
py-polars.src.polars.catalog.unity.client.CatalogUnity catalog client.
method
py-polars.src.polars.catalog.unity.client.Catalog.create_catalog(catalog_name:str, *comment:str | None=None, *storage_root:str | None=None) -> CatalogInfoCreate a catalog.
method
py-polars.src.polars.catalog.unity.client.Catalog.delete_catalog(catalog_name:str, *force:bool=False) -> NoneDelete a catalog.
method
py-polars.src.polars.catalog.unity.client.Catalog.delete_namespace(catalog_name:str, namespace:str, *force:bool=False) -> NoneDelete a namespace (unity schema) in the catalog.
method
py-polars.src.polars.catalog.unity.client.Catalog.delete_table(catalog_name:str, namespace:str, table_name:str) -> NoneDelete the table stored at this location.
method
py-polars.src.polars.catalog.unity.client.Catalog.get_table_info(catalog_name:str, namespace:str, table_name:str) -> TableInfoRetrieve the metadata of the specified table.
method
py-polars.src.polars.catalog.unity.client.Catalog.list_catalogs() -> list[CatalogInfo]List the available catalogs.
method
py-polars.src.polars.catalog.unity.client.Catalog.list_tables(catalog_name:str, namespace:str) -> list[TableInfo]List the available tables under the specified schema.
class
py-polars.src.polars.catalog.unity.models.CatalogInfoInformation for a catalog within a metastore.
class
py-polars.src.polars.catalog.unity.models.ColumnInfoInformation for a column within a catalog table.
method
py-polars.src.polars.catalog.unity.models.ColumnInfo.get_polars_dtype() -> DataTypeGet the native polars datatype of this column.
class
py-polars.src.polars.catalog.unity.models.NamespaceInfoInformation for a namespace within a catalog.
class
py-polars.src.polars.catalog.unity.models.TableInfoInformation for a catalog table.
method
py-polars.src.polars.catalog.unity.models.TableInfo.get_polars_schema() -> Schema | NoneGet the native polars schema of this table.
class
py-polars.src.polars.config.ConfigConfigure polars; offers options for table formatting and more.
method
py-polars.src.polars.config.Config.load(cfg:str) -> ConfigLoad (and set) previously saved Config options from a JSON string.
method
py-polars.src.polars.config.Config.load_from_file(file:Path | str) -> ConfigLoad (and set) previously saved Config options from file.
method
py-polars.src.polars.config.Config.save(*if_set:bool=False) -> strSave the current set of Config options as a JSON string.
method
py-polars.src.polars.config.Config.save_to_file(file:Path | str) -> NoneSave the current set of Config options as a JSON file.
method
py-polars.src.polars.config.Config.set_ascii_tables(active:bool | None=True) -> type[Config]Use ASCII characters to display table outlines.
method
py-polars.src.polars.config.Config.set_decimal_separator(separator:str | None=None) -> type[Config]Set the decimal separator character.
method
py-polars.src.polars.config.Config.set_default_credential_provider(credential_provider:CredentialProviderFunction | Literal['auto'] | None) -> type[Config]Set a default credential provider.
method
py-polars.src.polars.config.Config.set_engine_affinity(engine:EngineType | None=None) -> type[Config]Set which engine to use by default.
method
py-polars.src.polars.config.Config.set_fmt_float(fmt:FloatFmt | None='mixed') -> type[Config]Control how floating point values are displayed.
method
py-polars.src.polars.config.Config.set_fmt_str_lengths(n:int | None) -> type[Config]Set the number of characters used to display string values.
method
py-polars.src.polars.config.Config.set_fmt_table_cell_list_len(n:int | None) -> type[Config]Set the number of elements to display for List values.
method
py-polars.src.polars.config.Config.set_streaming_chunk_size(size:int | None) -> type[Config]Overwrite chunk size used in `streaming` engine.
method
py-polars.src.polars.config.Config.set_tbl_cell_alignment(format:Alignment | None) -> type[Config]Set table cell alignment.
method
py-polars.src.polars.config.Config.set_tbl_cell_numeric_alignment(format:Alignment | None) -> type[Config]Set table cell alignment for numeric columns.
method
py-polars.src.polars.config.Config.set_tbl_formatting(format:TableFormatNames | None=None, rounded_corners:bool | None=False) -> type[Config]Set table formatting style.
method
py-polars.src.polars.config.Config.set_tbl_hide_column_data_types(active:bool | None=True) -> type[Config]Hide table column data types (i64, f64, str etc.).
method
py-polars.src.polars.config.Config.set_tbl_hide_column_names(active:bool | None=True) -> type[Config]Hide table column names.
method
py-polars.src.polars.config.Config.set_tbl_width_chars(width:int | None) -> type[Config]Set the maximum width of a table in characters.
method
py-polars.src.polars.config.Config.set_thousands_separator(separator:str | bool | None=None) -> type[Config]Set the thousands grouping separator character.
method
py-polars.src.polars.config.Config.set_trim_decimal_zeros(active:bool | None=True) -> type[Config]Strip trailing zeros from Decimal data type values.
method
py-polars.src.polars.config.Config.set_verbose(active:bool | None=True) -> type[Config]Enable additional verbose/debug logging.
method
py-polars.src.polars.config.Config.warn_unstable(active:bool | None=True) -> type[Config]Issue a warning when unstable functionality is used.
class
py-polars.src.polars.config.ConfigParametersParameters supported by the polars Config.
method
py-polars.src.polars.dataframe._html.HTMLFormatter.render() -> list[str]Return the lines needed to render a HTML table.
method
py-polars.src.polars.dataframe._html.HTMLFormatter.write(inner:str) -> NoneAppend a raw string to the inner HTML.
method
py-polars.src.polars.dataframe._html.HTMLFormatter.write_body() -> NoneWrite the body of an HTML table.
method
py-polars.src.polars.dataframe._html.HTMLFormatter.write_header() -> NoneWrite the header of an HTML table.
class
py-polars.src.polars.dataframe._html.TagClass for representing an HTML tag.
func
py-polars.src.polars.dataframe._html.replace_consecutive_spaces(s:str) -> strReplace consecutive spaces with HTML non-breaking spaces.
class
py-polars.src.polars.dataframe.group_by.DynamicGroupByA dynamic grouper.
class
py-polars.src.polars.dataframe.group_by.DynamicGroupByIterIterator returned by :meth:`DynamicGroupBy.__iter__`.
class
py-polars.src.polars.dataframe.group_by.GroupByStarts a new GroupBy operation.
method
py-polars.src.polars.dataframe.group_by.GroupBy.agg(*aggs:IntoExpr | Iterable[IntoExpr], **named_aggs:IntoExpr) -> DataFrameCompute aggregations for each group of a group by operation.
method
py-polars.src.polars.dataframe.group_by.GroupBy.all() -> DataFrameAggregate the groups into Series.
method
py-polars.src.polars.dataframe.group_by.GroupBy.count() -> DataFrameReturn the number of rows in each group.
method
py-polars.src.polars.dataframe.group_by.GroupBy.first(*ignore_nulls:bool=False) -> DataFrameAggregate the first values in the group.
method
py-polars.src.polars.dataframe.group_by.GroupBy.head(n:int=5) -> DataFrameGet the first `n` rows of each group.
method
py-polars.src.polars.dataframe.group_by.GroupBy.last(*ignore_nulls:bool=False) -> DataFrameAggregate the last values in the group.
method
py-polars.src.polars.dataframe.group_by.GroupBy.len(name:str | None=None) -> DataFrameReturn the number of rows in each group.
method
py-polars.src.polars.dataframe.group_by.GroupBy.max() -> DataFrameReduce the groups to the maximal value.
method
py-polars.src.polars.dataframe.group_by.GroupBy.mean() -> DataFrameReduce the groups to the mean values.
method
py-polars.src.polars.dataframe.group_by.GroupBy.median() -> DataFrameReturn the median per group.
method
py-polars.src.polars.dataframe.group_by.GroupBy.min() -> DataFrameReduce the groups to the minimal value.
method
py-polars.src.polars.dataframe.group_by.GroupBy.n_unique() -> DataFrameCount the unique values per group.
method
py-polars.src.polars.dataframe.group_by.GroupBy.quantile(quantile:float, interpolation:QuantileMethod='nearest') -> DataFrameCompute the quantile per group.
method
py-polars.src.polars.dataframe.group_by.GroupBy.sum() -> DataFrameReduce the groups to the sum.
method
py-polars.src.polars.dataframe.group_by.GroupBy.tail(n:int=5) -> DataFrameGet the last `n` rows of each group.
class
py-polars.src.polars.dataframe.group_by.GroupByIterIterator returned by :meth:`GroupBy.__iter__`.
class
py-polars.src.polars.dataframe.group_by.RollingGroupByA rolling grouper.
class
py-polars.src.polars.dataframe.group_by.RollingGroupByIterIterator returned by :meth:`RollingGroupBy.__iter__`.
class
py-polars.src.polars.dataframe.plotting.DataFramePlotDataFrame.plot namespace.
method
py-polars.src.polars.dataframe.plotting.DataFramePlot.bar(x:X | None=None, y:Y | None=None, color:Color | None=None, **kwargs:Unpack[EncodeKwds]) -> alt.ChartDraw bar plot.
method
py-polars.src.polars.dataframe.plotting.DataFramePlot.line(x:X | None=None, y:Y | None=None, color:Color | None=None, order:Order | None=None, **kwargs:Unpack[EncodeKwds]) -> alt.ChartDraw line plot.
method
py-polars.src.polars.dataframe.plotting.DataFramePlot.point(x:X | None=None, y:Y | None=None, color:Color | None=None, size:Size | None=None, **kwargs:Unpack[EncodeKwds]) -> alt.ChartDraw scatter plot.
class
py-polars.src.polars.datatype_expr.array.DataTypeExprArrNameSpaceNamespace for arr datatype expressions.
method
py-polars.src.polars.datatype_expr.array.DataTypeExprArrNameSpace.inner_dtype() -> pl.DataTypeExprGet the inner DataType of array.
method
py-polars.src.polars.datatype_expr.array.DataTypeExprArrNameSpace.shape() -> pl.ExprGet the array shape.
method
py-polars.src.polars.datatype_expr.array.DataTypeExprArrNameSpace.width() -> pl.ExprGet the array width.
class
py-polars.src.polars.datatype_expr.list.DataTypeExprListNameSpaceNamespace for list datatype expressions.
method
py-polars.src.polars.datatype_expr.list.DataTypeExprListNameSpace.inner_dtype() -> pl.DataTypeExprGet the inner DataType of list.
class
py-polars.src.polars.datatype_expr.struct.DataTypeExprStructNameSpaceNamespace for struct datatype expressions.
method
py-polars.src.polars.datatype_expr.struct.DataTypeExprStructNameSpace.field_names() -> pl.ExprGet the field names in a struct as a list.
func
py-polars.src.polars.datatypes._parse.parse_into_datatype_expr(input:Any) -> pl.DataTypeExprParse an input into a DataTypeExpr.
func
py-polars.src.polars.datatypes._parse.parse_into_dtype(input:Any) -> PolarsDataTypeParse an input into a Polars data type.
func
py-polars.src.polars.datatypes._parse.parse_py_type_into_dtype(input:PythonDataType | type[object]) -> PolarsDataTypeConvert Python data type to Polars data type.
func
py-polars.src.polars.datatypes._utils.dtype_to_init_repr(dtype:PolarsDataType, prefix:str='pl.') -> strConvert a Polars dtype to a prefixed string representation.
class
py-polars.src.polars.datatypes.classes.ArrayFixed length list type.
method
py-polars.src.polars.datatypes.classes.Array.width() -> intThe size of the Array.
class
py-polars.src.polars.datatypes.classes.BaseExtensionBase class for extension data types.
method
py-polars.src.polars.datatypes.classes.BaseExtension.ext_metadata() -> str | NoneReturns the metadata for this extension type.
method
py-polars.src.polars.datatypes.classes.BaseExtension.ext_name() -> strReturns the name of this extension type.
method
py-polars.src.polars.datatypes.classes.BaseExtension.ext_storage() -> PolarsDataTypeReturns the storage type for this extension type.
class
py-polars.src.polars.datatypes.classes.BinaryBinary type.
class
py-polars.src.polars.datatypes.classes.BooleanBoolean type.
class
py-polars.src.polars.datatypes.classes.CategoricalA categorical encoding of a set of strings.
class
py-polars.src.polars.datatypes.classes.DataTypeBase class for all Polars data types.
method
py-polars.src.polars.datatypes.classes.DataType.is_(other:PolarsDataType) -> boolCheck if this DataType is the same as another DataType.
method
py-polars.src.polars.datatypes.classes.DataType.is_decimal() -> boolCheck whether the data type is a decimal type.
method
py-polars.src.polars.datatypes.classes.DataType.is_extension() -> boolCheck whether the data type is an extension type.
method
py-polars.src.polars.datatypes.classes.DataType.is_integer() -> boolCheck whether the data type is an integer type.
method
py-polars.src.polars.datatypes.classes.DataType.is_nested() -> boolCheck whether the data type is a nested type.
method
py-polars.src.polars.datatypes.classes.DataType.is_numeric() -> boolCheck whether the data type is a numeric type.
method
py-polars.src.polars.datatypes.classes.DataType.is_object() -> boolCheck whether the data type is an object type.
method
py-polars.src.polars.datatypes.classes.DataType.is_temporal() -> boolCheck whether the data type is a temporal type.
class
py-polars.src.polars.datatypes.classes.DataTypeClassMetaclass for nicely printing DataType classes.
class
py-polars.src.polars.datatypes.classes.DateData type representing a calendar date.
class
py-polars.src.polars.datatypes.classes.DatetimeData type representing a calendar date and time of day.
class
py-polars.src.polars.datatypes.classes.DurationData type representing a time duration.
class
py-polars.src.polars.datatypes.classes.EnumA fixed categorical encoding of a unique set of strings.
method
py-polars.src.polars.datatypes.classes.Enum.union(other:Enum) -> EnumUnion of two Enums.
class
py-polars.src.polars.datatypes.classes.ExtensionGeneric extension data type.
class
py-polars.src.polars.datatypes.classes.FieldDefinition of a single field within a `Struct` DataType.
class
py-polars.src.polars.datatypes.classes.Float1616-bit floating point type.
class
py-polars.src.polars.datatypes.classes.Float3232-bit floating point type.
class
py-polars.src.polars.datatypes.classes.Float6464-bit floating point type.
class
py-polars.src.polars.datatypes.classes.FloatTypeBase class for float data types.
class
py-polars.src.polars.datatypes.classes.Int128128-bit signed integer type.
class
py-polars.src.polars.datatypes.classes.Int1616-bit signed integer type.
class
py-polars.src.polars.datatypes.classes.Int3232-bit signed integer type.
class
py-polars.src.polars.datatypes.classes.Int6464-bit signed integer type.
class
py-polars.src.polars.datatypes.classes.Int88-bit signed integer type.
class
py-polars.src.polars.datatypes.classes.IntegerTypeBase class for integer data types.
class
py-polars.src.polars.datatypes.classes.ListVariable length list type.
class
py-polars.src.polars.datatypes.classes.NestedTypeBase class for nested data types.
class
py-polars.src.polars.datatypes.classes.NullData type representing null values.
class
py-polars.src.polars.datatypes.classes.NumericTypeBase class for numeric data types.
class
py-polars.src.polars.datatypes.classes.ObjectData type for wrapping arbitrary Python objects.
class
py-polars.src.polars.datatypes.classes.ObjectTypeBase class for object data types.
class
py-polars.src.polars.datatypes.classes.SignedIntegerTypeBase class for signed integer data types.
class
py-polars.src.polars.datatypes.classes.StringUTF-8 encoded string type.
class
py-polars.src.polars.datatypes.classes.StructStruct composite type.
method
py-polars.src.polars.datatypes.classes.Struct.to_schema() -> OrderedDict[str, PolarsDataType]Return Struct dtype as a schema dict.
class
py-polars.src.polars.datatypes.classes.TemporalTypeBase class for temporal data types.
class
py-polars.src.polars.datatypes.classes.TimeData type representing the time of day.
class
py-polars.src.polars.datatypes.classes.UInt128128-bit unsigned integer type.
class
py-polars.src.polars.datatypes.classes.UInt1616-bit unsigned integer type.
class
py-polars.src.polars.datatypes.classes.UInt3232-bit unsigned integer type.
class
py-polars.src.polars.datatypes.classes.UInt6464-bit unsigned integer type.
class
py-polars.src.polars.datatypes.classes.UInt88-bit unsigned integer type.
class
py-polars.src.polars.datatypes.classes.UnsignedIntegerTypeBase class for unsigned integer data types.
func
py-polars.src.polars.datatypes.convert.dtype_to_ffiname(dtype:PolarsDataType) -> strReturn FFI function name associated with the given Polars dtype.
func
py-polars.src.polars.datatypes.convert.dtype_to_py_type(dtype:PolarsDataType) -> PythonDataTypeConvert a Polars dtype to a Python dtype.
func
py-polars.src.polars.datatypes.convert.numpy_char_code_to_dtype(dtype_char:str) -> PolarsDataTypeConvert a numpy character dtype to a Polars dtype.
func
py-polars.src.polars.datatypes.convert.py_type_to_arrow_type(dtype:PythonDataType) -> pa.DataTypeConvert a Python dtype to an Arrow dtype.
func
py-polars.src.polars.datatypes.convert.supported_numpy_char_code(dtype_char:str) -> boolCheck if the input can be mapped to a Polars dtype.
func
py-polars.src.polars.datatypes.extension.unregister_extension_type(ext_name:str) -> NoneUnregister the extension type for the given extension name.
class
py-polars.src.polars.datatypes.group.DataTypeGroupGroup of data types.
class
py-polars.src.polars.exceptions.ColumnNotFoundErrorException raised when a specified column is not found.
class
py-polars.src.polars.exceptions.DuplicateErrorException raised when a column name is duplicated.
class
py-polars.src.polars.exceptions.OutOfBoundsErrorException raised when the given index is out of bounds.
class
py-polars.src.polars.exceptions.PolarsErrorBase class for all Polars errors.
class
py-polars.src.polars.exceptions.PolarsWarningBase class for all Polars warnings.
class
py-polars.src.polars.exceptions.UnstableWarningWarning issued when unstable functionality is used.
class
py-polars.src.polars.expr.array.ExprArrayNameSpaceNamespace for array related expressions.
method
py-polars.src.polars.expr.array.ExprArrayNameSpace.agg(expr:Expr) -> ExprRun any polars aggregation expression against the arrays' elements.
method
py-polars.src.polars.expr.array.ExprArrayNameSpace.any(*ignore_nulls:bool=True) -> ExprEvaluate whether any boolean value is true for every subarray.
method
py-polars.src.polars.expr.array.ExprArrayNameSpace.contains(item:IntoExpr, *nulls_equal:bool=True) -> ExprCheck if sub-arrays contain the given item.
method
py-polars.src.polars.expr.array.ExprArrayNameSpace.count_matches(element:IntoExpr) -> ExprCount how often the value produced by `element` occurs.
method
py-polars.src.polars.expr.array.ExprArrayNameSpace.eval(expr:Expr, *as_list:bool=False) -> ExprRun any polars expression against the arrays' elements.
method
py-polars.src.polars.expr.array.ExprArrayNameSpace.first() -> ExprGet the first value of the sub-arrays.
method
py-polars.src.polars.expr.array.ExprArrayNameSpace.get(index:int | IntoExprColumn, *null_on_oob:bool=False) -> ExprGet the value by index in the sub-arrays.
method
py-polars.src.polars.expr.array.ExprArrayNameSpace.head(n:int | str | Expr=5, *as_array:bool=False) -> ExprGet the first `n` elements of the sub-arrays.
method
py-polars.src.polars.expr.array.ExprArrayNameSpace.last() -> ExprGet the last value of the sub-arrays.
method
py-polars.src.polars.expr.array.ExprArrayNameSpace.len() -> ExprReturn the number of elements in each array.
method
py-polars.src.polars.expr.array.ExprArrayNameSpace.max() -> ExprCompute the max values of the sub-arrays.
method
py-polars.src.polars.expr.array.ExprArrayNameSpace.mean() -> ExprCompute the mean of the values of the sub-arrays.
method
py-polars.src.polars.expr.array.ExprArrayNameSpace.median() -> ExprCompute the median of the values of the sub-arrays.
method
py-polars.src.polars.expr.array.ExprArrayNameSpace.min() -> ExprCompute the min values of the sub-arrays.
method
py-polars.src.polars.expr.array.ExprArrayNameSpace.reverse() -> ExprReverse the sub-arrays in this column.
method
py-polars.src.polars.expr.array.ExprArrayNameSpace.shift(n:int | IntoExprColumn=1) -> ExprShift array values by the given number of indices.
method
py-polars.src.polars.expr.array.ExprArrayNameSpace.slice(offset:int | str | Expr, length:int | str | Expr | None=None, *as_array:bool=False) -> ExprSlice every subarray.
method
py-polars.src.polars.expr.array.ExprArrayNameSpace.sort(*descending:bool=False, *nulls_last:bool=False) -> ExprSort every sub-array.
method
py-polars.src.polars.expr.array.ExprArrayNameSpace.std(ddof:int=1) -> ExprCompute the std of the values of the sub-arrays.
method
py-polars.src.polars.expr.array.ExprArrayNameSpace.sum() -> ExprCompute the sum values of the sub-arrays.
method
py-polars.src.polars.expr.array.ExprArrayNameSpace.tail(n:int | str | Expr=5, *as_array:bool=False) -> ExprSlice the last `n` values of every sublist.
method
py-polars.src.polars.expr.array.ExprArrayNameSpace.unique(*maintain_order:bool=False) -> ExprGet the unique/distinct values in every sub-array.
method
py-polars.src.polars.expr.array.ExprArrayNameSpace.var(ddof:int=1) -> ExprCompute the var of the values of the sub-arrays.
class
py-polars.src.polars.expr.binary.ExprBinaryNameSpaceNamespace for bin related expressions.
method
py-polars.src.polars.expr.binary.ExprBinaryNameSpace.contains(literal:IntoExpr) -> ExprCheck if binaries in Series contain a binary substring.
method
py-polars.src.polars.expr.binary.ExprBinaryNameSpace.decode(encoding:TransferEncoding, *strict:bool=True) -> ExprDecode values using the provided encoding.
method
py-polars.src.polars.expr.binary.ExprBinaryNameSpace.encode(encoding:TransferEncoding) -> ExprEncode a value using the provided encoding.
method
py-polars.src.polars.expr.binary.ExprBinaryNameSpace.ends_with(suffix:IntoExpr) -> ExprCheck if string values end with a binary substring.
method
py-polars.src.polars.expr.binary.ExprBinaryNameSpace.get(index:int | IntoExpr, *null_on_oob:bool=False) -> ExprGet the byte value at the given index.
method
py-polars.src.polars.expr.binary.ExprBinaryNameSpace.head(n:int | IntoExpr=5) -> ExprTake the first `n` bytes of the binary values.
method
py-polars.src.polars.expr.binary.ExprBinaryNameSpace.reinterpret(*dtype:PolarsDataType | DataTypeExpr, *endianness:Endianness='little') -> ExprInterpret bytes as another type.
method
py-polars.src.polars.expr.binary.ExprBinaryNameSpace.size(unit:SizeUnit='b') -> ExprGet the size of binary values in the given unit.
method
py-polars.src.polars.expr.binary.ExprBinaryNameSpace.slice(offset:int | IntoExpr, length:int | IntoExpr | None=None) -> ExprSlice the binary values.
method
py-polars.src.polars.expr.binary.ExprBinaryNameSpace.starts_with(prefix:IntoExpr) -> ExprCheck if values start with a binary substring.
method
py-polars.src.polars.expr.binary.ExprBinaryNameSpace.tail(n:int | IntoExpr=5) -> ExprTake the last `n` bytes of the binary values.
class
py-polars.src.polars.expr.categorical.ExprCatNameSpaceNamespace for categorical related expressions.
method
py-polars.src.polars.expr.categorical.ExprCatNameSpace.get_categories() -> ExprGet the categories stored in this data type.
method
py-polars.src.polars.expr.categorical.ExprCatNameSpace.to(dtype:PolarsDataType | pl.DataTypeExpr, *strict:bool=True) -> ExprConvert to a categorical or enum `dtype`.
class
py-polars.src.polars.expr.datetime.ExprDateTimeNameSpaceNamespace for datetime related expressions.
method
py-polars.src.polars.expr.datetime.ExprDateTimeNameSpace.base_utc_offset() -> ExprBase offset from UTC.
method
py-polars.src.polars.expr.datetime.ExprDateTimeNameSpace.cast_time_unit(time_unit:TimeUnit) -> ExprCast the underlying data to another time unit.
method
py-polars.src.polars.expr.datetime.ExprDateTimeNameSpace.date() -> ExprExtract date from date(time).
method
py-polars.src.polars.expr.datetime.ExprDateTimeNameSpace.datetime() -> ExprReturn datetime.
method
py-polars.src.polars.expr.datetime.ExprDateTimeNameSpace.day() -> ExprExtract day from underlying Date representation.
method
py-polars.src.polars.expr.datetime.ExprDateTimeNameSpace.month() -> ExprExtract month from underlying Date representation.
method
py-polars.src.polars.expr.datetime.ExprDateTimeNameSpace.month_end() -> ExprRoll forward to the last day of the month.
method
py-polars.src.polars.expr.datetime.ExprDateTimeNameSpace.month_start() -> ExprRoll backward to the first day of the month.
method
py-polars.src.polars.expr.datetime.ExprDateTimeNameSpace.offset_by(by:str | Expr) -> ExprOffset this date by a relative time offset.
method
py-polars.src.polars.expr.datetime.ExprDateTimeNameSpace.round(every:str | dt.timedelta | IntoExprColumn) -> ExprDivide the date/datetime range into buckets.
method
py-polars.src.polars.expr.datetime.ExprDateTimeNameSpace.second(*fractional:bool=False) -> ExprExtract seconds from underlying DateTime representation.
method
py-polars.src.polars.expr.datetime.ExprDateTimeNameSpace.time() -> ExprExtract time.
method
py-polars.src.polars.expr.datetime.ExprDateTimeNameSpace.timestamp(time_unit:TimeUnit='us') -> ExprReturn a timestamp in the given time unit.
method
py-polars.src.polars.expr.datetime.ExprDateTimeNameSpace.total_days(*fractional:bool=False) -> ExprExtract the total days from a Duration type.
method
py-polars.src.polars.expr.datetime.ExprDateTimeNameSpace.total_hours(*fractional:bool=False) -> ExprExtract the total hours from a Duration type.
method
py-polars.src.polars.expr.datetime.ExprDateTimeNameSpace.total_microseconds(*fractional:bool=False) -> ExprExtract the total microseconds from a Duration type.
method
py-polars.src.polars.expr.datetime.ExprDateTimeNameSpace.total_milliseconds(*fractional:bool=False) -> ExprExtract the total milliseconds from a Duration type.
method
py-polars.src.polars.expr.datetime.ExprDateTimeNameSpace.total_minutes(*fractional:bool=False) -> ExprExtract the total minutes from a Duration type.
method
py-polars.src.polars.expr.datetime.ExprDateTimeNameSpace.total_nanoseconds(*fractional:bool=False) -> ExprExtract the total nanoseconds from a Duration type.
method
py-polars.src.polars.expr.datetime.ExprDateTimeNameSpace.total_seconds(*fractional:bool=False) -> ExprExtract the total seconds from a Duration type.
method
py-polars.src.polars.expr.datetime.ExprDateTimeNameSpace.truncate(every:str | dt.timedelta | Expr) -> ExprDivide the date/datetime range into buckets.
method
py-polars.src.polars.expr.datetime.ExprDateTimeNameSpace.year() -> ExprExtract year from underlying Date representation.
class
py-polars.src.polars.expr.ext.ExprExtensionNameSpaceNamespace for extension type related expressions.
method
py-polars.src.polars.expr.ext.ExprExtensionNameSpace.storage() -> ExprGet the storage values of an extension data type.
method
py-polars.src.polars.expr.ext.ExprExtensionNameSpace.to(dtype:PolarsDataType | pl.DataTypeExpr) -> ExprConvert to an extension `dtype`.
class
py-polars.src.polars.expr.list.ExprListNameSpaceNamespace for list related expressions.
method
py-polars.src.polars.expr.list.ExprListNameSpace.agg(expr:Expr) -> ExprRun any polars aggregation expression against the lists' elements.
method
py-polars.src.polars.expr.list.ExprListNameSpace.all(*ignore_nulls:bool=True) -> ExprEvaluate whether all boolean values in a list are true.
method
py-polars.src.polars.expr.list.ExprListNameSpace.any(*ignore_nulls:bool=True) -> ExprEvaluate whether any boolean value in a list is true.
method
py-polars.src.polars.expr.list.ExprListNameSpace.contains(item:IntoExpr, *nulls_equal:bool=True) -> ExprCheck if sub-lists contain the given item.
method
py-polars.src.polars.expr.list.ExprListNameSpace.count_matches(element:IntoExpr) -> ExprCount how often the value produced by `element` occurs.
method
py-polars.src.polars.expr.list.ExprListNameSpace.drop_nulls() -> ExprDrop all null values in the list.
method
py-polars.src.polars.expr.list.ExprListNameSpace.eval(expr:Expr, *parallel:bool=False) -> ExprRun any polars expression against every lists' elements.
method
py-polars.src.polars.expr.list.ExprListNameSpace.filter(predicate:Expr) -> ExprFilter elements in each list by a boolean expression.
method
py-polars.src.polars.expr.list.ExprListNameSpace.first() -> ExprGet the first value of every sub-list.
method
py-polars.src.polars.expr.list.ExprListNameSpace.gather(indices:Expr | Series | list[int] | list[list[int]], *null_on_oob:bool=False) -> ExprTake sub-lists by multiple indices.
method
py-polars.src.polars.expr.list.ExprListNameSpace.get(index:int | Expr | str, *null_on_oob:bool=False) -> ExprGet the value by index in every sublist.
method
py-polars.src.polars.expr.list.ExprListNameSpace.head(n:int | str | Expr=5) -> ExprSlice the first `n` values of every sub-list.
method
py-polars.src.polars.expr.list.ExprListNameSpace.item(*allow_empty:bool=False) -> ExprGet the single value of the sub-list.
method
py-polars.src.polars.expr.list.ExprListNameSpace.last() -> ExprGet the last value of every sub-list.
method
py-polars.src.polars.expr.list.ExprListNameSpace.len() -> ExprReturn the number of elements in each list.
method
py-polars.src.polars.expr.list.ExprListNameSpace.max() -> ExprCompute the max value of the lists in the array.
method
py-polars.src.polars.expr.list.ExprListNameSpace.mean() -> ExprCompute the mean value of the lists in the array.
method
py-polars.src.polars.expr.list.ExprListNameSpace.median() -> ExprCompute the median value of the lists in the array.
method
py-polars.src.polars.expr.list.ExprListNameSpace.min() -> ExprCompute the min value of the lists in the array.
method
py-polars.src.polars.expr.list.ExprListNameSpace.n_unique() -> ExprCount the number of unique values in every sub-list.
method
py-polars.src.polars.expr.list.ExprListNameSpace.reverse() -> ExprReverse the arrays in the list.
method
py-polars.src.polars.expr.list.ExprListNameSpace.sample(n:int | IntoExprColumn | None=None, *fraction:float | IntoExprColumn | None=None, *with_replacement:bool=False, *shuffle:bool | None=None, *seed:int | None=None) -> ExprSample from this list.
method
py-polars.src.polars.expr.list.ExprListNameSpace.shift(n:int | IntoExprColumn=1) -> ExprShift every sub-lists values by the given number of indices.
method
py-polars.src.polars.expr.list.ExprListNameSpace.slice(offset:int | str | Expr, length:int | str | Expr | None=None) -> ExprSlice every sub-list.
method
py-polars.src.polars.expr.list.ExprListNameSpace.sort(*descending:bool=False, *nulls_last:bool=False) -> ExprSort the lists in this column.
method
py-polars.src.polars.expr.list.ExprListNameSpace.std(ddof:int=1) -> ExprCompute the std value of the lists in the array.
method
py-polars.src.polars.expr.list.ExprListNameSpace.sum() -> ExprSum all the lists in the array.
method
py-polars.src.polars.expr.list.ExprListNameSpace.tail(n:int | str | Expr=5) -> ExprSlice the last `n` values of every sub-list.
method
py-polars.src.polars.expr.list.ExprListNameSpace.unique(*maintain_order:bool=False) -> ExprGet the unique/distinct values in every sub-list.
method
py-polars.src.polars.expr.list.ExprListNameSpace.var(ddof:int=1) -> ExprCompute the var value of the lists in the array.
class
py-polars.src.polars.expr.meta.ExprMetaNameSpaceNamespace for expressions on a meta level.
method
py-polars.src.polars.expr.meta.ExprMetaNameSpace.as_expression() -> ExprReturn the original expression.
method
py-polars.src.polars.expr.meta.ExprMetaNameSpace.as_selector() -> pl.SelectorTry to turn this expression in a selector.
method
py-polars.src.polars.expr.meta.ExprMetaNameSpace.eq(other:ExprMetaNameSpace | Expr) -> boolIndicate if this expression is the same as another expression.
method
py-polars.src.polars.expr.meta.ExprMetaNameSpace.root_names() -> list[str]Get a list with the root column name.
method
py-polars.src.polars.expr.name.ExprNameNameSpace.keep() -> ExprKeep the original root name of the expression.
method
py-polars.src.polars.expr.name.ExprNameNameSpace.prefix(prefix:str) -> ExprAdd a prefix to the root column name of the expression.
method
py-polars.src.polars.expr.name.ExprNameNameSpace.prefix_fields(prefix:str) -> ExprAdd a prefix to all field names of a struct.
method
py-polars.src.polars.expr.name.ExprNameNameSpace.suffix(suffix:str) -> ExprAdd a suffix to the root column name of the expression.
method
py-polars.src.polars.expr.name.ExprNameNameSpace.suffix_fields(suffix:str) -> ExprAdd a suffix to all field names of a struct.
method
py-polars.src.polars.expr.name.ExprNameNameSpace.to_lowercase() -> ExprMake the root column name lowercase.
method
py-polars.src.polars.expr.name.ExprNameNameSpace.to_uppercase() -> ExprMake the root column name uppercase.
class
py-polars.src.polars.expr.string.ExprStringNameSpaceNamespace for string related expressions.
method
py-polars.src.polars.expr.string.ExprStringNameSpace.contains_any(patterns:IntoExpr, *ascii_case_insensitive:bool=False) -> ExprUse the Aho-Corasick algorithm to find matches.
method
py-polars.src.polars.expr.string.ExprStringNameSpace.count_matches(pattern:str | Expr, *literal:bool=False) -> ExprCount all successive non-overlapping regex matches.
method
py-polars.src.polars.expr.string.ExprStringNameSpace.decode(encoding:TransferEncoding, *strict:bool=True) -> ExprDecode values using the provided encoding.
method
py-polars.src.polars.expr.string.ExprStringNameSpace.encode(encoding:TransferEncoding) -> ExprEncode values using the provided encoding.
method
py-polars.src.polars.expr.string.ExprStringNameSpace.ends_with(suffix:str | Expr) -> ExprCheck if string values end with a substring.
method
py-polars.src.polars.expr.string.ExprStringNameSpace.extract_all(pattern:str | Expr) -> ExprExtract all matches for the given regex pattern.
method
py-polars.src.polars.expr.string.ExprStringNameSpace.extract_groups(pattern:str) -> ExprExtract all capture groups for the given regex pattern.
method
py-polars.src.polars.expr.string.ExprStringNameSpace.json_decode(dtype:PolarsDataType | pl.DataTypeExpr, *infer_schema_length:int | None=None) -> ExprParse string values as JSON.
method
py-polars.src.polars.expr.string.ExprStringNameSpace.normalize(form:UnicodeForm='NFC') -> ExprReturns the Unicode normal form of the string values.
method
py-polars.src.polars.expr.string.ExprStringNameSpace.reverse() -> ExprReturns string values in reversed order.
method
py-polars.src.polars.expr.string.ExprStringNameSpace.slice(offset:int | IntoExprColumn, length:int | IntoExprColumn | None=None) -> ExprExtract a substring from each string value.
method
py-polars.src.polars.expr.string.ExprStringNameSpace.split(by:IntoExpr, *inclusive:bool=False, *literal:bool=True, *strict:bool=True) -> ExprSplit the string by a substring.
method
py-polars.src.polars.expr.string.ExprStringNameSpace.split_exact(by:IntoExpr, n:int, *inclusive:bool=False) -> ExprSplit the string by a substring using `n` splits.
method
py-polars.src.polars.expr.string.ExprStringNameSpace.starts_with(prefix:str | Expr) -> ExprCheck if string values start with a substring.
method
py-polars.src.polars.expr.string.ExprStringNameSpace.strip_chars(characters:IntoExpr=None) -> ExprRemove leading and trailing characters.
method
py-polars.src.polars.expr.string.ExprStringNameSpace.strip_chars_end(characters:IntoExpr=None) -> ExprRemove trailing characters.
method
py-polars.src.polars.expr.string.ExprStringNameSpace.strip_chars_start(characters:IntoExpr=None) -> ExprRemove leading characters.
method
py-polars.src.polars.expr.string.ExprStringNameSpace.strip_prefix(prefix:IntoExpr) -> ExprRemove prefix.
method
py-polars.src.polars.expr.string.ExprStringNameSpace.strip_suffix(suffix:IntoExpr) -> ExprRemove suffix.
method
py-polars.src.polars.expr.string.ExprStringNameSpace.to_date(format:str | None=None, *strict:bool=True, *exact:bool=True, *cache:bool=True) -> ExprConvert a String column into a Date column.
method
py-polars.src.polars.expr.string.ExprStringNameSpace.to_decimal(*scale:int) -> ExprConvert a String column into a Decimal column.
method
py-polars.src.polars.expr.string.ExprStringNameSpace.to_lowercase() -> ExprModify strings to their lowercase equivalent.
method
py-polars.src.polars.expr.string.ExprStringNameSpace.to_time(format:str | None=None, *strict:bool=True, *cache:bool=True) -> ExprConvert a String column into a Time column.
method
py-polars.src.polars.expr.string.ExprStringNameSpace.to_titlecase() -> ExprModify strings to their titlecase equivalent.
method
py-polars.src.polars.expr.string.ExprStringNameSpace.to_uppercase() -> ExprModify strings to their uppercase equivalent.
class
py-polars.src.polars.expr.struct.ExprStructNameSpaceNamespace for struct related expressions.
method
py-polars.src.polars.expr.struct.ExprStructNameSpace.drop(names:Sequence[str], *strict:bool=True) -> ExprDrop one or more fields from the struct.
method
py-polars.src.polars.expr.struct.ExprStructNameSpace.field(name:str | list[str], *more_names:str) -> ExprRetrieve one or multiple `Struct` field(s) as a new Series.
method
py-polars.src.polars.expr.struct.ExprStructNameSpace.rename_fields(names:Sequence[str]) -> ExprRename the fields of the struct.
method
py-polars.src.polars.expr.struct.ExprStructNameSpace.unnest() -> ExprExpand the struct into its individual fields.
method
py-polars.src.polars.expr.struct.ExprStructNameSpace.with_fields(*exprs:IntoExpr | Iterable[IntoExpr], **named_exprs:IntoExpr) -> ExprAdd or overwrite fields of this struct.
class
py-polars.src.polars.expr.whenthen.ChainedThenUtility class for the `when-then-otherwise` expression.
method
py-polars.src.polars.expr.whenthen.ChainedThen.otherwise(statement:IntoExpr) -> ExprDefine a default for the `when-then-otherwise` expression.
class
py-polars.src.polars.expr.whenthen.ChainedWhenUtility class for the `when-then-otherwise` expression.
method
py-polars.src.polars.expr.whenthen.ChainedWhen.then(statement:IntoExpr) -> ChainedThenAttach a statement to the corresponding condition.
class
py-polars.src.polars.expr.whenthen.ThenUtility class for the `when-then-otherwise` expression.
method
py-polars.src.polars.expr.whenthen.Then.otherwise(statement:IntoExpr) -> ExprDefine a default for the `when-then-otherwise` expression.
method
py-polars.src.polars.expr.whenthen.Then.when(*predicates:IntoExpr | Iterable[IntoExpr], **constraints:Any) -> ChainedWhenAdd a condition to the `when-then-otherwise` expression.
class
py-polars.src.polars.expr.whenthen.WhenUtility class for the `when-then-otherwise` expression.
method
py-polars.src.polars.expr.whenthen.When.then(statement:IntoExpr) -> ThenAttach a statement to the corresponding condition.
func
py-polars.src.polars.functions.aggregation.horizontal.all_horizontal(*exprs:IntoExpr | Iterable[IntoExpr]) -> ExprCompute the logical AND horizontally across columns.
func
py-polars.src.polars.functions.aggregation.horizontal.any_horizontal(*exprs:IntoExpr | Iterable[IntoExpr]) -> ExprCompute the logical OR horizontally across columns.
func
py-polars.src.polars.functions.aggregation.horizontal.max_horizontal(*exprs:IntoExpr | Iterable[IntoExpr]) -> ExprGet the maximum value horizontally across columns.
func
py-polars.src.polars.functions.aggregation.horizontal.min_horizontal(*exprs:IntoExpr | Iterable[IntoExpr]) -> ExprGet the minimum value horizontally across columns.
func
py-polars.src.polars.functions.aggregation.horizontal.sum_horizontal(*ignore_nulls:bool=True, *exprs:IntoExpr | Iterable[IntoExpr]) -> ExprSum all values horizontally across columns.
func
py-polars.src.polars.functions.aggregation.vertical.any(*ignore_nulls:bool=True, *names:str) -> Expr | bool | NoneEvaluate a bitwise OR operation.
func
py-polars.src.polars.functions.aggregation.vertical.cum_sum(*names:str) -> ExprCumulatively sum all values.
func
py-polars.src.polars.functions.aggregation.vertical.max(*names:str) -> ExprGet the maximum value.
func
py-polars.src.polars.functions.aggregation.vertical.min(*names:str) -> ExprGet the minimum value.
func
py-polars.src.polars.functions.aggregation.vertical.sum(*names:str) -> ExprSum all values.
func
py-polars.src.polars.functions.as_datatype.date_(year:Expr | str | int, month:Expr | str | int, day:Expr | str | int) -> ExprCreate a Polars literal expression of type Date.
func
py-polars.src.polars.functions.as_datatype.format(f_string:str, *args:IntoExpr) -> ExprFormat expressions as a string.
class
py-polars.src.polars.functions.col.ColCreate Polars column expressions.
func
py-polars.src.polars.functions.escape_regex.escape_regex(s:str) -> strEscapes string regex meta characters.
func
py-polars.src.polars.functions.lazy.approx_n_unique(*columns:str) -> ExprApproximate count of unique values.
func
py-polars.src.polars.functions.lazy.arctan2(y:str | Expr, x:str | Expr) -> ExprCompute two argument arctan in radians.
func
py-polars.src.polars.functions.lazy.arctan2d(y:str | Expr, x:str | Expr) -> ExprCompute two argument arctan in degrees.
func
py-polars.src.polars.functions.lazy.count(*columns:str) -> ExprReturn the number of non-null values in the column.
func
py-polars.src.polars.functions.lazy.field(name:str | list[str]) -> ExprSelect a field in the current `struct.with_fields` scope.
func
py-polars.src.polars.functions.lazy.first(*columns:str) -> ExprGet the first column or value.
func
py-polars.src.polars.functions.lazy.groups(column:str) -> ExprSyntactic sugar for `pl.col("foo").agg_groups()`.
func
py-polars.src.polars.functions.lazy.head(column:str, n:int=10) -> ExprGet the first `n` rows.
func
py-polars.src.polars.functions.lazy.implode(*maintain_order:bool=True, *columns:str) -> ExprAggregate all column values into a list.
func
py-polars.src.polars.functions.lazy.last(*columns:str) -> ExprGet the last column or value.
func
py-polars.src.polars.functions.lazy.mean(*columns:str) -> ExprGet the mean value.
func
py-polars.src.polars.functions.lazy.median(*columns:str) -> ExprGet the median value.
func
py-polars.src.polars.functions.lazy.n_unique(*columns:str) -> ExprCount unique values.
func
py-polars.src.polars.functions.lazy.nth(*strict:bool=True, *indices:int | Sequence[int]) -> ExprGet the nth column(s) of the context.
func
py-polars.src.polars.functions.lazy.quantile(column:str, quantile:float | Expr, interpolation:QuantileMethod='nearest') -> ExprSyntactic sugar for `pl.col("foo").quantile(..)`.
func
py-polars.src.polars.functions.lazy.row_index(name:str='index') -> pl.ExprGenerates a sequence of integers.
func
py-polars.src.polars.functions.lazy.std(column:str, ddof:int=1) -> ExprGet the standard deviation.
func
py-polars.src.polars.functions.lazy.tail(column:str, n:int=10) -> ExprGet the last `n` rows.
func
py-polars.src.polars.functions.lazy.var(column:str, ddof:int=1) -> ExprGet the variance.
func
py-polars.src.polars.functions.len.len() -> ExprReturn the number of rows in the context.
func
py-polars.src.polars.functions.lit.lit(value:Any, dtype:PolarsDataType | DataTypeExpr | None=None, *allow_object:bool=False) -> ExprReturn an expression representing a literal value.
func
py-polars.src.polars.functions.random.set_random_seed(seed:int) -> NoneSet the global random seed for Polars.
func
py-polars.src.polars.functions.range._utils.parse_interval_argument(interval:str | timedelta) -> strParse the interval argument as a Polars duration string.
func
py-polars.src.polars.functions.whenthen.when(*predicates:IntoExprColumn | Iterable[IntoExprColumn] | bool, **constraints:Any) -> pl.WhenStart a `when-then-otherwise` expression.
class
py-polars.src.polars.interchange.column.PolarsColumnA column object backed by a Polars Series.
method
py-polars.src.polars.interchange.column.PolarsColumn.dtype() -> DtypeData type of the column.
method
py-polars.src.polars.interchange.column.PolarsColumn.get_chunks(n_chunks:int | None=None) -> Iterator[PolarsColumn]Return an iterator yielding the column chunks.
method
py-polars.src.polars.interchange.column.PolarsColumn.metadata() -> dict[str, Any]The metadata for the column.
method
py-polars.src.polars.interchange.column.PolarsColumn.null_count() -> intThe number of null elements.
method
py-polars.src.polars.interchange.column.PolarsColumn.num_chunks() -> intReturn the number of chunks the column consists of.
method
py-polars.src.polars.interchange.column.PolarsColumn.size() -> intSize of the column in elements.
class
py-polars.src.polars.interchange.dataframe.PolarsDataFrameA dataframe object backed by a Polars DataFrame.
method
py-polars.src.polars.interchange.dataframe.PolarsDataFrame.column_names() -> list[str]Return the column names.
method
py-polars.src.polars.interchange.dataframe.PolarsDataFrame.get_column(i:int) -> PolarsColumnReturn the column at the indicated position.
method
py-polars.src.polars.interchange.dataframe.PolarsDataFrame.get_column_by_name(name:str) -> PolarsColumnReturn the column with the given name.
method
py-polars.src.polars.interchange.dataframe.PolarsDataFrame.get_columns() -> Iterator[PolarsColumn]Return an iterator yielding the columns.
method
py-polars.src.polars.interchange.dataframe.PolarsDataFrame.metadata() -> dict[str, Any]The metadata for the dataframe.
method
py-polars.src.polars.interchange.dataframe.PolarsDataFrame.num_columns() -> intReturn the number of columns in the dataframe.
method
py-polars.src.polars.interchange.dataframe.PolarsDataFrame.num_rows() -> intReturn the number of rows in the dataframe.
class
py-polars.src.polars.interchange.protocol.BufferInterchange buffer object.
method
py-polars.src.polars.interchange.protocol.Buffer.bufsize() -> intBuffer size in bytes.
method
py-polars.src.polars.interchange.protocol.Buffer.ptr() -> intPointer to start of the buffer as an integer.
この情報について
掲載しているシグネチャは pola-rs/polars の公開ソースコードを
Python の ast モジュールで静的解析し、引数名・デフォルト値・
型注釈・戻り値型をそのまま抽出したものです。実装コードは保存していません。
詳しくは仕組みの解説をご覧ください。