polars-df 0.14.0 → 0.16.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 +35 -0
- data/Cargo.lock +1523 -378
- data/LICENSE.txt +1 -0
- data/README.md +38 -4
- data/ext/polars/Cargo.toml +15 -5
- data/ext/polars/src/batched_csv.rs +7 -10
- data/ext/polars/src/conversion/any_value.rs +31 -21
- data/ext/polars/src/conversion/mod.rs +155 -48
- data/ext/polars/src/dataframe/construction.rs +0 -3
- data/ext/polars/src/dataframe/export.rs +9 -2
- data/ext/polars/src/dataframe/general.rs +15 -57
- data/ext/polars/src/dataframe/io.rs +77 -169
- data/ext/polars/src/dataframe/mod.rs +1 -0
- data/ext/polars/src/dataframe/serde.rs +15 -0
- data/ext/polars/src/error.rs +31 -48
- data/ext/polars/src/exceptions.rs +24 -0
- data/ext/polars/src/expr/binary.rs +4 -42
- data/ext/polars/src/expr/datetime.rs +5 -4
- data/ext/polars/src/expr/general.rs +16 -22
- data/ext/polars/src/expr/list.rs +18 -11
- data/ext/polars/src/expr/meta.rs +6 -2
- data/ext/polars/src/expr/rolling.rs +6 -7
- data/ext/polars/src/expr/string.rs +9 -36
- data/ext/polars/src/file.rs +78 -23
- data/ext/polars/src/functions/aggregation.rs +4 -4
- data/ext/polars/src/functions/business.rs +15 -0
- data/ext/polars/src/functions/io.rs +34 -13
- data/ext/polars/src/functions/lazy.rs +22 -12
- data/ext/polars/src/functions/meta.rs +1 -1
- data/ext/polars/src/functions/mod.rs +1 -0
- data/ext/polars/src/interop/arrow/mod.rs +1 -0
- data/ext/polars/src/interop/arrow/to_ruby.rs +83 -0
- data/ext/polars/src/interop/mod.rs +1 -0
- data/ext/polars/src/lazyframe/general.rs +920 -0
- data/ext/polars/src/lazyframe/mod.rs +3 -827
- data/ext/polars/src/lazyframe/serde.rs +31 -0
- data/ext/polars/src/lib.rs +54 -27
- data/ext/polars/src/map/dataframe.rs +10 -6
- data/ext/polars/src/map/lazy.rs +65 -4
- data/ext/polars/src/map/mod.rs +9 -8
- data/ext/polars/src/on_startup.rs +1 -1
- data/ext/polars/src/series/aggregation.rs +1 -5
- data/ext/polars/src/series/arithmetic.rs +10 -10
- data/ext/polars/src/series/construction.rs +2 -2
- data/ext/polars/src/series/export.rs +1 -1
- data/ext/polars/src/series/general.rs +631 -0
- data/ext/polars/src/series/import.rs +55 -0
- data/ext/polars/src/series/mod.rs +11 -638
- data/ext/polars/src/series/scatter.rs +2 -2
- data/ext/polars/src/utils.rs +0 -20
- data/lib/polars/batched_csv_reader.rb +0 -2
- data/lib/polars/binary_expr.rb +133 -9
- data/lib/polars/binary_name_space.rb +101 -6
- data/lib/polars/config.rb +4 -0
- data/lib/polars/data_frame.rb +452 -101
- data/lib/polars/data_type_group.rb +28 -0
- data/lib/polars/data_types.rb +3 -1
- data/lib/polars/date_time_expr.rb +244 -0
- data/lib/polars/date_time_name_space.rb +87 -0
- data/lib/polars/expr.rb +103 -2
- data/lib/polars/functions/aggregation/horizontal.rb +10 -4
- data/lib/polars/functions/as_datatype.rb +51 -2
- data/lib/polars/functions/col.rb +1 -1
- data/lib/polars/functions/eager.rb +1 -3
- data/lib/polars/functions/lazy.rb +95 -13
- data/lib/polars/functions/range/time_range.rb +21 -21
- data/lib/polars/io/csv.rb +14 -16
- data/lib/polars/io/database.rb +2 -2
- data/lib/polars/io/delta.rb +126 -0
- data/lib/polars/io/ipc.rb +14 -4
- data/lib/polars/io/ndjson.rb +10 -0
- data/lib/polars/io/parquet.rb +168 -111
- data/lib/polars/lazy_frame.rb +684 -20
- data/lib/polars/list_name_space.rb +169 -0
- data/lib/polars/selectors.rb +1226 -0
- data/lib/polars/series.rb +465 -35
- data/lib/polars/string_cache.rb +27 -1
- data/lib/polars/string_expr.rb +0 -1
- data/lib/polars/string_name_space.rb +73 -3
- data/lib/polars/struct_name_space.rb +31 -7
- data/lib/polars/utils/various.rb +5 -1
- data/lib/polars/utils.rb +45 -10
- data/lib/polars/version.rb +1 -1
- data/lib/polars.rb +17 -1
- metadata +16 -9
- data/lib/polars/functions.rb +0 -57
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bd28fce84de5645e4e99afda27a2f1a8842cb1ddaa8076dc60e5ceec7c090cb1
|
4
|
+
data.tar.gz: b92736395e7ac8d38372a34e14e7692936ec5766ff32955b2341d857c82faa56
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5798edc516679fab6098b6c6f60f8dabb0c9c9af274dc6157f53de29a8c221a83f677787c5c6fa7f68dac2145f6ce77f48ef1408734456dee8ab2313d5ad9ef7
|
7
|
+
data.tar.gz: 540a851e2a563b0c14a054fc6855fba65b12d23c4b663752d16d8c0c708e338a8ed064916a469287253efa7e21794010129d8e05d8b3fbcc66755281354c1f43
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,38 @@
|
|
1
|
+
## 0.16.0 (2024-12-29)
|
2
|
+
|
3
|
+
- Updated Polars to 0.45.1
|
4
|
+
- Added support for Ruby 3.4
|
5
|
+
- Added experimental support for Delta Lake
|
6
|
+
- Added `by_name` selector
|
7
|
+
- Added `thread_pool_size` method to `Polars`
|
8
|
+
- Removed `axis` option from `min`, `max`, `sum`, and `mean` methods (use `*_horizontal` instead)
|
9
|
+
- Dropped support for Ruby < 3.2
|
10
|
+
|
11
|
+
## 0.15.0 (2024-11-20)
|
12
|
+
|
13
|
+
- Updated Polars to 0.44.2
|
14
|
+
- I/O methods no longer require a `URI` object for remote files
|
15
|
+
- Added support for scanning files from cloud storage
|
16
|
+
- Added experimental support for Arrow C streams
|
17
|
+
- Added selectors
|
18
|
+
- Added `config`, `string_cache`, and `cs` methods to `Polars`
|
19
|
+
- Added `strict` option to `DataFrame` constructor
|
20
|
+
- Added `compat_level` option to `write_ipc` and `write_ipc_stream` methods
|
21
|
+
- Added `name` option to `write_avro` method
|
22
|
+
- Added support for array of name-type pairs to `schema` option
|
23
|
+
- Added `cast` method to `DataFrame` and `LazyFrame`
|
24
|
+
- Added `coalesce` option to `join` and `join_asof` methods
|
25
|
+
- Added `validate` option to `join` method
|
26
|
+
- Added `strict` option to `rename` method
|
27
|
+
- Changed `rechunk` option default from `true` to `false` for `scan_parquet` method
|
28
|
+
- Fixed `limit` method for `LazyFrame`
|
29
|
+
- Fixed `read_database` connection leasing for Active Record 7.2
|
30
|
+
- Removed `get_dummies` method from `Polars` (use `df.to_dummies` instead)
|
31
|
+
- Removed `to_list` method from `Polars` (use `col(name).list` instead)
|
32
|
+
- Removed `spearman_rank_corr` method from `Polars` (use `corr(method: "spearman")` instead)
|
33
|
+
- Removed `pearson_corr` method from `Polars` (use `corr(method: "pearson")` instead)
|
34
|
+
- Removed `inner_dtype` and `time_unit` methods from `Series`
|
35
|
+
|
1
36
|
## 0.14.0 (2024-09-17)
|
2
37
|
|
3
38
|
- Updated Polars to 0.43.1
|