Skip to content

polars 1.39.0

Version history | Download JSON

  • PyPI https://pypi.org/project/polars/
    Repository https://github.com/pola-rs/polars

  • py.typed

  • Coverage


    %%{init: {"pie": {"textPosition": 0.85}, "theme": "neutral", "themeVariables": {"pieStrokeWidth": "1px"}}}%%
    pie title
        "Typed" : 5252
        "Any" : 131
        "Untyped" : 43
    • 99.2% coverage
    • 96.8% coverage (strict)
    • 5426 typable
      • 5252 typed
      • 43 untyped
      • 131 Any
  • Typables


    %%{init: {"pie": {"textPosition": 0.85}, "theme": "neutral", "themeVariables": {"pieStrokeWidth": "1px"}}}%%
    pie title
        "functions" : 1085
        "classes" : 4226
        "other" : 33
    • 236 functions (+59 overloads)
      • 849 parameters
    • 152 classes
      • 1642 methods (+92 overloads)
        • 2510 parameters
      • 64 properties
    • 116 modules
      • 33 attrs

Modules

Module Coverage Coverage (strict) Typables Ignores
polars 0.0% 0.0% 0 0
polars.api 100.0% 100.0% 8 0
polars.catalog.unity.client 96.3% 96.3% 82 0
polars.catalog.unity.models 100.0% 100.0% 4 0
polars.config 100.0% 100.0% 85 0
polars.convert.general 100.0% 100.0% 47 0
polars.convert.normalize 100.0% 100.0% 8 0
polars.dataframe.frame 100.0% 97.0% 626 2
polars.dataframe.group_by 77.0% 77.0% 100 0
polars.dataframe.plotting 100.0% 100.0% 29 0
polars.datatype_expr.array 100.0% 100.0% 5 0
polars.datatype_expr.datatype_expr 100.0% 100.0% 27 3
polars.datatype_expr.list 100.0% 100.0% 3 0
polars.datatype_expr.struct 100.0% 100.0% 7 0
polars.datatypes 0.0% 0.0% 0 0
polars.datatypes._parse 100.0% 50.0% 6 0
polars.datatypes.classes 99.4% 97.7% 174 11
polars.datatypes.constants 100.0% 100.0% 2 0
polars.datatypes.constructor 100.0% 100.0% 9 0
polars.datatypes.convert 95.7% 82.6% 23 0
polars.datatypes.extension 100.0% 100.0% 8 0
polars.datatypes.group 100.0% 93.3% 15 1
polars.exceptions 0.0% 0.0% 0 19
polars.expr.array 100.0% 100.0% 59 0
polars.expr.binary 100.0% 100.0% 28 0
polars.expr.categorical 100.0% 100.0% 12 0
polars.expr.datetime 100.0% 100.0% 86 0
polars.expr.expr 100.0% 96.8% 629 3
polars.expr.ext 100.0% 100.0% 5 0
polars.expr.list 100.0% 100.0% 91 0
polars.expr.meta 100.0% 100.0% 44 2
polars.expr.name 100.0% 100.0% 21 0
polars.expr.string 100.0% 100.0% 144 0
polars.expr.struct 100.0% 100.0% 14 0
polars.expr.whenthen 100.0% 78.6% 28 2
polars.functions.aggregation.horizontal 100.0% 100.0% 16 0
polars.functions.aggregation.vertical 100.0% 100.0% 14 0
polars.functions.as_datatype 100.0% 100.0% 49 0
polars.functions.business 100.0% 100.0% 5 0
polars.functions.col 100.0% 100.0% 1 0
polars.functions.datatype 100.0% 100.0% 5 0
polars.functions.eager 100.0% 100.0% 16 0
polars.functions.escape_regex 100.0% 100.0% 2 0
polars.functions.lazy 100.0% 100.0% 165 1
polars.functions.len 100.0% 100.0% 1 0
polars.functions.lit 100.0% 75.0% 4 0
polars.functions.random 100.0% 100.0% 2 0
polars.functions.range.date_range 100.0% 100.0% 12 0
polars.functions.range.datetime_range 100.0% 100.0% 16 0
polars.functions.range.int_range 100.0% 100.0% 18 0
polars.functions.range.linear_space 100.0% 100.0% 13 0
polars.functions.range.time_range 100.0% 100.0% 12 0
polars.functions.repeat 100.0% 100.0% 13 0
polars.functions.whenthen 100.0% 66.7% 3 0
polars.interchange.buffer 100.0% 100.0% 8 0
polars.interchange.column 100.0% 100.0% 20 0
polars.interchange.dataframe 100.0% 100.0% 23 0
polars.interchange.from_dataframe 100.0% 100.0% 3 0
polars.interchange.protocol 100.0% 100.0% 9 2
polars.interchange.utils 100.0% 100.0% 11 0
polars.io.avro 100.0% 100.0% 4 0
polars.io.clipboard 100.0% 66.7% 3 0
polars.io.cloud.credential_provider._providers 84.4% 82.2% 45 0
polars.io.csv.batched_reader 100.0% 100.0% 31 0
polars.io.csv.functions 100.0% 100.0% 102 0
polars.io.database.functions 100.0% 100.0% 19 0
polars.io.delta.functions 100.0% 100.0% 19 0
polars.io.iceberg._dataset 100.0% 100.0% 5 0
polars.io.iceberg.functions 100.0% 100.0% 9 0
polars.io.ipc.functions 100.0% 100.0% 39 0
polars.io.json.read 100.0% 100.0% 5 0
polars.io.lines 100.0% 100.0% 20 0
polars.io.ndjson 100.0% 100.0% 34 0
polars.io.parquet.functions 100.0% 100.0% 60 0
polars.io.partition 100.0% 100.0% 7 0
polars.io.plugins 100.0% 100.0% 9 0
polars.io.pyarrow_dataset.functions 100.0% 100.0% 4 0
polars.io.scan_options.cast_options 68.4% 68.4% 19 0
polars.io.spreadsheet.functions 100.0% 100.0% 28 0
polars.lazyframe.engine_config 100.0% 88.9% 9 1
polars.lazyframe.frame 100.0% 98.2% 501 0
polars.lazyframe.group_by 96.9% 96.9% 32 0
polars.lazyframe.in_process 100.0% 100.0% 5 0
polars.lazyframe.opt_flags 100.0% 100.0% 60 1
polars.meta.build 100.0% 100.0% 1 0
polars.meta.index_type 100.0% 100.0% 1 0
polars.meta.thread_pool 100.0% 100.0% 2 0
polars.meta.versions 100.0% 100.0% 1 0
polars.ml.torch 100.0% 100.0% 14 1
polars.ml.utilities 100.0% 100.0% 5 0
polars.plugins 100.0% 100.0% 12 0
polars.schema 100.0% 100.0% 22 0
polars.selectors 100.0% 89.4% 104 1
polars.series.array 100.0% 100.0% 60 0
polars.series.binary 100.0% 100.0% 28 0
polars.series.categorical 100.0% 100.0% 15 0
polars.series.datetime 100.0% 100.0% 92 0
polars.series.ext 100.0% 100.0% 5 0
polars.series.list 100.0% 100.0% 90 0
polars.series.plotting 100.0% 100.0% 10 0
polars.series.series 100.0% 93.4% 671 5
polars.series.string 100.0% 100.0% 143 0
polars.series.struct 100.0% 100.0% 14 0
polars.series.utils 100.0% 100.0% 9 0
polars.sql.context 100.0% 100.0% 32 0
polars.sql.functions 100.0% 100.0% 3 0
polars.string_cache 100.0% 100.0% 8 0
polars.testing.asserts.frame 100.0% 100.0% 20 0
polars.testing.asserts.schema 100.0% 100.0% 5 0
polars.testing.asserts.series 100.0% 100.0% 20 0
polars.testing.asserts.utils 100.0% 66.7% 6 0
polars.testing.parametric.profiles 100.0% 100.0% 5 0
polars.testing.parametric.strategies.core 100.0% 93.5% 31 0
polars.testing.parametric.strategies.data 100.0% 92.3% 39 0
polars.testing.parametric.strategies.dtype 83.3% 83.3% 6 0
polars.testing.parametric.strategies.legacy 100.0% 100.0% 13 0

Incomplete Annotations

polars.catalog.unity.client (3 missing, 0 any)

Symbol Typable Typed Any
attr CatalogCredentialProvider.catalog 1 0 0
attr CatalogCredentialProvider.table_id 1 0 0
attr CatalogCredentialProvider.write 1 0 0

polars.dataframe.frame (0 missing, 19 any)

Symbol Typable Typed Any
meth DataFrame._comp 3 3 1
meth DataFrame._compare_to_non_df 3 3 1
meth DataFrame._div 3 3 1
meth DataFrame.gt 2 2 1
meth DataFrame.lt 2 2 1
meth DataFrame.ge 2 2 1
meth DataFrame.le 2 2 1
meth DataFrame.getitem 2 2 1
meth DataFrame.setitem 3 3 1
meth DataFrame.item 3 3 1
meth DataFrame.to_pandas 3 3 1
meth DataFrame._to_pandas_with_object_columns 3 3 1
meth DataFrame._to_pandas_without_object_columns 4 4 1
meth DataFrame.write_clipboard 3 3 1
meth DataFrame.filter 3 3 1
meth DataFrame.remove 3 3 1
meth DataFrame.get_column 3 3 2
meth DataFrame.corr 3 3 1

polars.dataframe.group_by (23 missing, 0 any)

Symbol Typable Typed Any
attr RollingGroupBy.df 1 0 0
attr RollingGroupBy.time_column 1 0 0
attr RollingGroupBy.period 1 0 0
attr RollingGroupBy.offset 1 0 0
attr RollingGroupBy.closed 1 0 0
attr RollingGroupBy.group_by 1 0 0
attr RollingGroupBy.predicates 1 0 0
attr GroupBy.df 1 0 0
attr GroupBy.by 1 0 0
attr GroupBy.named_by 1 0 0
attr GroupBy.maintain_order 1 0 0
attr GroupBy.predicates 1 0 0
attr DynamicGroupBy.df 1 0 0
attr DynamicGroupBy.time_column 1 0 0
attr DynamicGroupBy.every 1 0 0
attr DynamicGroupBy.period 1 0 0
attr DynamicGroupBy.offset 1 0 0
attr DynamicGroupBy.label 1 0 0
attr DynamicGroupBy.include_boundaries 1 0 0
attr DynamicGroupBy.closed 1 0 0
attr DynamicGroupBy.group_by 1 0 0
attr DynamicGroupBy.start_by 1 0 0
attr DynamicGroupBy.predicates 1 0 0

polars.datatypes._parse (0 missing, 3 any)

Symbol Typable Typed Any
func parse_into_dtype 2 2 1
func try_parse_into_dtype 2 2 1
func parse_into_datatype_expr 2 2 1

polars.datatypes.classes (1 missing, 3 any)

Symbol Typable Typed Any
meth BaseExtension.ext_from_params 4 4 1
meth classinstmethod.get 3 3 2
attr classinstmethod.func 1 0 0

polars.datatypes.convert (1 missing, 3 any)

Symbol Typable Typed Any
func maybe_cast 3 3 2
func is_polars_dtype 4 4 1
attr DataTypeMappings 1 0 0

polars.datatypes.group (0 missing, 1 any)

Symbol Typable Typed Any
meth DataTypeGroup.contains 2 2 1

polars.expr.expr (0 missing, 20 any)

Symbol Typable Typed Any
meth Expr.array_ufunc 5 5 2
meth Expr.filter 3 3 1
meth Expr.and_ 2 2 1
meth Expr.or_ 2 2 1
meth Expr.eq 2 2 1
meth Expr.eq_missing 2 2 1
meth Expr.ge 2 2 1
meth Expr.gt 2 2 1
meth Expr.le 2 2 1
meth Expr.lt 2 2 1
meth Expr.ne 2 2 1
meth Expr.ne_missing 2 2 1
meth Expr.add 2 2 1
meth Expr.floordiv 2 2 1
meth Expr.mod 2 2 1
meth Expr.mul 2 2 1
meth Expr.sub 2 2 1
meth Expr.truediv 2 2 1
meth Expr.xor 2 2 1

polars.expr.whenthen (0 missing, 6 any)

Symbol Typable Typed Any
meth When.init 2 2 1
meth Then.init 2 2 1
meth Then.when 3 3 1
meth ChainedThen.init 2 2 1
meth ChainedThen.when 3 3 1
meth ChainedWhen.init 2 2 1

polars.functions.lit (0 missing, 1 any)

Symbol Typable Typed Any
func lit 4 4 1

polars.functions.whenthen (0 missing, 1 any)

Symbol Typable Typed Any
func when 3 3 1

polars.io.clipboard (0 missing, 1 any)

Symbol Typable Typed Any
func read_clipboard 3 3 1

polars.io.cloud.credential_provider._providers (7 missing, 1 any)

Symbol Typable Typed Any
attr CredentialProviderAzure.account_name 1 0 0
attr CredentialProviderAzure.scopes 1 0 0
attr CredentialProviderAzure.tenant_id 1 0 0
attr CredentialProviderAzure.credential 1 0 0
meth CredentialProviderAWS._finish_assume_role 2 2 1
attr CredentialProviderAWS.profile_name 1 0 0
attr CredentialProviderAWS.region_name 1 0 0
attr CredentialProviderAWS.assume_role 1 0 0

polars.io.scan_options.cast_options (6 missing, 0 any)

Symbol Typable Typed Any
attr ScanCastOptions.integer_cast 1 0 0
attr ScanCastOptions.float_cast 1 0 0
attr ScanCastOptions.datetime_cast 1 0 0
attr ScanCastOptions.missing_struct_fields 1 0 0
attr ScanCastOptions.extra_struct_fields 1 0 0
attr ScanCastOptions.categorical_to_string 1 0 0

polars.lazyframe.engine_config (0 missing, 1 any)

Symbol Typable Typed Any
meth GPUEngine.init 5 5 1

polars.lazyframe.frame (0 missing, 9 any)

Symbol Typable Typed Any
meth LazyFrame._scan_python_function 6 6 1
meth LazyFrame.gt 2 2 1
meth LazyFrame.lt 2 2 1
meth LazyFrame.ge 2 2 1
meth LazyFrame.le 2 2 1
meth LazyFrame.profile 17 17 1
meth LazyFrame.fetch 3 3 1
meth LazyFrame.filter 3 3 1
meth LazyFrame.remove 3 3 1

polars.lazyframe.group_by (1 missing, 0 any)

Symbol Typable Typed Any
attr LazyGroupBy.lgb 1 0 0

polars.selectors (0 missing, 11 any)

Symbol Typable Typed Any
meth Selector.add 2 2 1
meth Selector.radd 2 2 1
meth Selector.and 2 2 1
meth Selector.rand 2 2 1
meth Selector.or 2 2 1
meth Selector.ror 2 2 1
meth Selector.sub 2 2 1
meth Selector.rsub 2 2 1
meth Selector.xor 2 2 1
meth Selector.rxor 2 2 1
func is_selector 2 2 1

polars.series.series (0 missing, 44 any)

Symbol Typable Typed Any
meth Series._from_buffer 4 4 1
meth Series.and 2 2 1
meth Series.rand 2 2 1
meth Series.or 2 2 1
meth Series.ror 2 2 1
meth Series.xor 2 2 1
meth Series.rxor 2 2 1
meth Series._comp 3 3 1
meth Series.gt 2 2 1
meth Series.lt 2 2 1
meth Series.ge 2 2 1
meth Series.le 2 2 1
meth Series.le 2 2 1
meth Series.lt 2 2 1
meth Series.eq 2 2 1
meth Series.eq_missing 2 2 1
meth Series.ne 2 2 1
meth Series.ne_missing 2 2 1
meth Series.ge 2 2 1
meth Series.gt 2 2 1
meth Series._arithmetic 4 4 1
meth Series.add 2 2 1
meth Series.sub 2 2 1
meth Series.truediv 2 2 1
meth Series.floordiv 2 2 1
meth Series.mul 2 2 1
meth Series.mod 2 2 1
meth Series.rmod 2 2 1
meth Series.radd 2 2 1
meth Series.rsub 2 2 1
meth Series.rtruediv 2 2 1
meth Series.rfloordiv 2 2 1
meth Series.rmul 2 2 1
meth Series.rpow 2 2 1
meth Series.matmul 2 2 1
meth Series.rmatmul 2 2 1
meth Series.contains 2 2 1
meth Series.getitem 2 2 1
meth Series.setitem 3 3 1
meth Series.array_ufunc 5 5 2
meth Series.item 2 2 1
meth Series.to_pandas 3 3 1
meth Series.set 3 3 1

polars.testing.asserts.utils (0 missing, 2 any)

Symbol Typable Typed Any
func raise_assertion_error 6 6 2

polars.testing.parametric.strategies.core (0 missing, 2 any)

Symbol Typable Typed Any
func dataframes 15 15 1
func series 15 15 1

polars.testing.parametric.strategies.data (0 missing, 3 any)

Symbol Typable Typed Any
func lists 7 7 1
func structs 4 4 1
func data 4 4 1

polars.testing.parametric.strategies.dtype (1 missing, 0 any)

Symbol Typable Typed Any
attr TestExtension 1 0 0

Type-Ignore Comments

Flavor Count
type: ignore[override] 23
type: ignore[no-redef] 19
type: ignore[assignment] 5
type: ignore[overload-overlap] 3
type: ignore[attr-defined] 2
type: ignore[import-not-found] 1
type: ignore[misc] 1
type: ignore[type-arg] 1