polars-df 0.7.0 → 0.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +41 -0
- data/Cargo.lock +353 -237
- data/Cargo.toml +0 -3
- data/LICENSE.txt +1 -1
- data/README.md +2 -2
- data/ext/polars/Cargo.toml +17 -6
- data/ext/polars/src/batched_csv.rs +6 -7
- data/ext/polars/src/conversion/anyvalue.rs +185 -0
- data/ext/polars/src/conversion/chunked_array.rs +140 -0
- data/ext/polars/src/{conversion.rs → conversion/mod.rs} +268 -347
- data/ext/polars/src/dataframe.rs +96 -116
- data/ext/polars/src/expr/array.rs +74 -0
- data/ext/polars/src/expr/categorical.rs +8 -1
- data/ext/polars/src/expr/datetime.rs +22 -56
- data/ext/polars/src/expr/general.rs +124 -37
- data/ext/polars/src/expr/list.rs +52 -4
- data/ext/polars/src/expr/meta.rs +48 -0
- data/ext/polars/src/expr/rolling.rs +16 -10
- data/ext/polars/src/expr/string.rs +68 -17
- data/ext/polars/src/expr/struct.rs +8 -4
- data/ext/polars/src/functions/aggregation.rs +6 -0
- data/ext/polars/src/functions/lazy.rs +103 -48
- data/ext/polars/src/functions/meta.rs +45 -1
- data/ext/polars/src/functions/range.rs +5 -10
- data/ext/polars/src/functions/string_cache.rs +14 -0
- data/ext/polars/src/{lazyframe.rs → lazyframe/mod.rs} +166 -41
- data/ext/polars/src/lib.rs +245 -187
- data/ext/polars/src/map/dataframe.rs +1 -1
- data/ext/polars/src/map/mod.rs +2 -2
- data/ext/polars/src/map/series.rs +6 -6
- data/ext/polars/src/object.rs +0 -30
- data/ext/polars/src/on_startup.rs +32 -0
- data/ext/polars/src/series/aggregation.rs +23 -0
- data/ext/polars/src/series/construction.rs +1 -1
- data/ext/polars/src/series/export.rs +2 -2
- data/ext/polars/src/{series.rs → series/mod.rs} +45 -21
- data/ext/polars/src/series/{set_at_idx.rs → scatter.rs} +18 -18
- data/ext/polars/src/utils.rs +1 -1
- data/lib/polars/array_expr.rb +449 -0
- data/lib/polars/array_name_space.rb +346 -0
- data/lib/polars/cat_expr.rb +24 -0
- data/lib/polars/cat_name_space.rb +75 -0
- data/lib/polars/config.rb +2 -2
- data/lib/polars/data_frame.rb +248 -108
- data/lib/polars/data_types.rb +195 -29
- data/lib/polars/date_time_expr.rb +41 -24
- data/lib/polars/date_time_name_space.rb +12 -12
- data/lib/polars/exceptions.rb +12 -1
- data/lib/polars/expr.rb +1080 -195
- data/lib/polars/functions/aggregation/horizontal.rb +246 -0
- data/lib/polars/functions/aggregation/vertical.rb +282 -0
- data/lib/polars/functions/as_datatype.rb +248 -0
- data/lib/polars/functions/col.rb +47 -0
- data/lib/polars/functions/eager.rb +182 -0
- data/lib/polars/functions/lazy.rb +1280 -0
- data/lib/polars/functions/len.rb +49 -0
- data/lib/polars/functions/lit.rb +35 -0
- data/lib/polars/functions/random.rb +16 -0
- data/lib/polars/functions/range/date_range.rb +103 -0
- data/lib/polars/functions/range/int_range.rb +51 -0
- data/lib/polars/functions/repeat.rb +144 -0
- data/lib/polars/functions/whenthen.rb +27 -0
- data/lib/polars/functions.rb +29 -416
- data/lib/polars/group_by.rb +3 -3
- data/lib/polars/io.rb +21 -28
- data/lib/polars/lazy_frame.rb +390 -76
- data/lib/polars/list_expr.rb +152 -6
- data/lib/polars/list_name_space.rb +102 -0
- data/lib/polars/meta_expr.rb +175 -7
- data/lib/polars/series.rb +557 -59
- data/lib/polars/sql_context.rb +1 -1
- data/lib/polars/string_cache.rb +75 -0
- data/lib/polars/string_expr.rb +412 -96
- data/lib/polars/string_name_space.rb +4 -4
- data/lib/polars/struct_expr.rb +1 -1
- data/lib/polars/struct_name_space.rb +1 -1
- data/lib/polars/testing.rb +507 -0
- data/lib/polars/utils.rb +64 -20
- data/lib/polars/version.rb +1 -1
- data/lib/polars.rb +15 -2
- metadata +40 -9
- data/lib/polars/lazy_functions.rb +0 -1197
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d6852d4e91c063866f1a64c32607e62f536c1faa5730c57f278632b41d418614
|
4
|
+
data.tar.gz: 3c3aef0366fb2e182826a6fc70b5b278974cd71ce9a968ea2faf7dd6c3324a8c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7ce8f3a7c5e5f01d673361a5cd070dbdd675099794cebdd12c29dc5e5963b2b7d0798f432f32e917ed5d77eb2ffe9f5def99d9dbd616b04a45e5483d562c49e1
|
7
|
+
data.tar.gz: f69de773948caf4dcf48a59f52c881ae71b1a2a45f16aad65bc8aea0c4b4c31b2603a02907b62718d8f345dcb85ba1ec46abc2d3356cd2603c16a26cac596f60
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,44 @@
|
|
1
|
+
## 0.9.0 (2024-03-03)
|
2
|
+
|
3
|
+
See the [upgrade guide](https://docs.pola.rs/releases/upgrade/0.20/)
|
4
|
+
|
5
|
+
- Updated Polars to 0.38.1
|
6
|
+
- Changed `count` method to exclude null values
|
7
|
+
- Changed `dtype` and `schema` methods to always return instances of data types
|
8
|
+
- Added `Enum` type
|
9
|
+
- Added `Testing` module
|
10
|
+
- Added `arctan2`, `arctan2d`, `set_random_seed`, and `sql_expr` methods to `Polars`
|
11
|
+
- Added `enable_string_cache`, `disable_string_cache`, and `using_string_cache` to `Polars`
|
12
|
+
- Added methods for horizontal aggregations to `Polars`
|
13
|
+
- Added `sink_ipc`, `sink_csv`, and `sink_ndjson` methods to `LazyFrame`
|
14
|
+
- Added `replace` method to `Series` and `Expr`
|
15
|
+
- Added `eq`, `eq_missing`, `ne`, and `ne_missing` methods to `Series` and `Expr`
|
16
|
+
- Added `ge`, `gt`, `le`, and `lt` methods to `Series` and `Expr`
|
17
|
+
- Added `merge_sorted` method to `DataFrame` and `LazyFrame`
|
18
|
+
- Added more methods to `ArrayExpr` and `ArrayNameSpace`
|
19
|
+
- Added more methods to `CatExpr` and `CatNameSpace`
|
20
|
+
- Added more methods to `ListExpr` and `ListNameSpace`
|
21
|
+
- Added more methods to `MetaExpr`
|
22
|
+
- Added more methods to `StringExpr`
|
23
|
+
- Added `schema_overrides` option to `read_database` method
|
24
|
+
- Added `join_nulls` option to `join` method
|
25
|
+
- Added `ignore_nulls` option to `any` and `all` methods
|
26
|
+
- Aliased `apply` to `map_elements` for `Series`
|
27
|
+
- Aliased `cleared` to `clear` for `DataFrame` and `LazyFrame`
|
28
|
+
- Fixed error with `BigDecimal` objects
|
29
|
+
|
30
|
+
## 0.8.0 (2024-01-10)
|
31
|
+
|
32
|
+
- Updated Polars to 0.36.2
|
33
|
+
- Added support for Ruby 3.3
|
34
|
+
- Added warning to `count` method for `Series` and `Expr` about excluding null values in 0.9.0
|
35
|
+
- Added `cut` and `qcut` methods to `Series` and `Expr`
|
36
|
+
- Added `rle` and `rle_id` methods to `Series` and `Expr`
|
37
|
+
- Added `bottom_k` method to `Series`
|
38
|
+
- Aliased `Utf8` data type to `String`
|
39
|
+
- Fixed error with `top_k` method
|
40
|
+
- Dropped support for Ruby < 3.1
|
41
|
+
|
1
42
|
## 0.7.0 (2023-11-17)
|
2
43
|
|
3
44
|
- Updated Polars to 0.35.2
|