polars-df 0.13.0 → 0.15.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 +30 -0
- data/Cargo.lock +1368 -319
- data/LICENSE.txt +1 -0
- data/README.md +1 -2
- data/ext/polars/Cargo.toml +15 -6
- data/ext/polars/src/batched_csv.rs +10 -13
- data/ext/polars/src/conversion/any_value.rs +37 -21
- data/ext/polars/src/conversion/chunked_array.rs +3 -3
- data/ext/polars/src/conversion/mod.rs +159 -46
- data/ext/polars/src/dataframe/construction.rs +4 -7
- data/ext/polars/src/dataframe/export.rs +9 -2
- data/ext/polars/src/dataframe/general.rs +22 -16
- data/ext/polars/src/dataframe/io.rs +78 -174
- 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 +16 -7
- data/ext/polars/src/expr/general.rs +14 -23
- data/ext/polars/src/expr/list.rs +18 -11
- data/ext/polars/src/expr/name.rs +3 -2
- data/ext/polars/src/expr/rolling.rs +6 -7
- data/ext/polars/src/expr/string.rs +17 -37
- data/ext/polars/src/file.rs +59 -22
- data/ext/polars/src/functions/business.rs +15 -0
- data/ext/polars/src/functions/io.rs +6 -6
- data/ext/polars/src/functions/lazy.rs +17 -8
- data/ext/polars/src/functions/mod.rs +1 -0
- data/ext/polars/src/functions/range.rs +4 -2
- 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 +877 -0
- data/ext/polars/src/lazyframe/mod.rs +3 -825
- data/ext/polars/src/lazyframe/serde.rs +31 -0
- data/ext/polars/src/lib.rs +44 -13
- data/ext/polars/src/map/dataframe.rs +46 -14
- data/ext/polars/src/map/lazy.rs +65 -4
- data/ext/polars/src/map/mod.rs +17 -16
- data/ext/polars/src/map/series.rs +106 -64
- data/ext/polars/src/on_startup.rs +2 -2
- 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 +52 -25
- data/ext/polars/src/series/export.rs +1 -1
- data/ext/polars/src/series/general.rs +643 -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 +285 -62
- data/lib/polars/data_type_group.rb +28 -0
- data/lib/polars/data_types.rb +2 -0
- data/lib/polars/date_time_expr.rb +244 -0
- data/lib/polars/date_time_name_space.rb +87 -0
- data/lib/polars/expr.rb +109 -8
- 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 +88 -10
- 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/ipc.rb +14 -12
- data/lib/polars/io/ndjson.rb +10 -0
- data/lib/polars/io/parquet.rb +168 -111
- data/lib/polars/lazy_frame.rb +649 -15
- data/lib/polars/list_name_space.rb +169 -0
- data/lib/polars/selectors.rb +1144 -0
- data/lib/polars/series.rb +470 -40
- 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 +2 -1
- metadata +14 -4
- 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: a0cb16ed469de5f91350a64df092c73e535dbe83dd3f556623a8c1c556a4d143
|
4
|
+
data.tar.gz: 43e9d863d7e538e051c20409d16b289a9b8bf5bbc46bb1e957f015c25bd3f46e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fb5c8ce3bd83555e15bf829f286005612f8a9347afb87e8721fdd1bc1f58fe7219482a9c05993cd4a23f462fdca6da0b398818af0aa2915e3f260dff4337ccb3
|
7
|
+
data.tar.gz: 222daf0503fa45c63f7e835fa9dff3be62270c8c171def499b57cdd5fa94ffead34b759492d16749beca4f61ba732716922cea0a9becd2ef0a0d93f8ff591930
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,33 @@
|
|
1
|
+
## 0.15.0 (2024-11-20)
|
2
|
+
|
3
|
+
- Updated Polars to 0.44.2
|
4
|
+
- I/O methods no longer require a `URI` object for remote files
|
5
|
+
- Added support for scanning files from cloud storage
|
6
|
+
- Added experimental support for Arrow C streams
|
7
|
+
- Added selectors
|
8
|
+
- Added `config`, `string_cache`, and `cs` methods to `Polars`
|
9
|
+
- Added `strict` option to `DataFrame` constructor
|
10
|
+
- Added `compat_level` option to `write_ipc` and `write_ipc_stream` methods
|
11
|
+
- Added `name` option to `write_avro` method
|
12
|
+
- Added support for array of name-type pairs to `schema` option
|
13
|
+
- Added `cast` method to `DataFrame` and `LazyFrame`
|
14
|
+
- Added `coalesce` option to `join` and `join_asof` methods
|
15
|
+
- Added `validate` option to `join` method
|
16
|
+
- Added `strict` option to `rename` method
|
17
|
+
- Changed `rechunk` option default from `true` to `false` for `scan_parquet` method
|
18
|
+
- Fixed `limit` method for `LazyFrame`
|
19
|
+
- Fixed `read_database` connection leasing for Active Record 7.2
|
20
|
+
- Removed `get_dummies` method from `Polars` (use `df.to_dummies` instead)
|
21
|
+
- Removed `to_list` method from `Polars` (use `col(name).list` instead)
|
22
|
+
- Removed `spearman_rank_corr` method from `Polars` (use `corr(method: "spearman")` instead)
|
23
|
+
- Removed `pearson_corr` method from `Polars` (use `corr(method: "pearson")` instead)
|
24
|
+
- Removed `inner_dtype` and `time_unit` methods from `Series`
|
25
|
+
|
26
|
+
## 0.14.0 (2024-09-17)
|
27
|
+
|
28
|
+
- Updated Polars to 0.43.1
|
29
|
+
- Fixed `frac` option for `sample` method
|
30
|
+
|
1
31
|
## 0.13.0 (2024-09-04)
|
2
32
|
|
3
33
|
- Updated Polars to 0.42.0
|