polars-df 0.14.0 → 0.15.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (81) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +25 -0
  3. data/Cargo.lock +1296 -283
  4. data/LICENSE.txt +1 -0
  5. data/README.md +1 -2
  6. data/ext/polars/Cargo.toml +15 -5
  7. data/ext/polars/src/batched_csv.rs +7 -10
  8. data/ext/polars/src/conversion/any_value.rs +31 -21
  9. data/ext/polars/src/conversion/mod.rs +125 -28
  10. data/ext/polars/src/dataframe/construction.rs +0 -3
  11. data/ext/polars/src/dataframe/export.rs +9 -2
  12. data/ext/polars/src/dataframe/general.rs +16 -11
  13. data/ext/polars/src/dataframe/io.rs +73 -169
  14. data/ext/polars/src/dataframe/mod.rs +1 -0
  15. data/ext/polars/src/dataframe/serde.rs +15 -0
  16. data/ext/polars/src/error.rs +31 -48
  17. data/ext/polars/src/exceptions.rs +24 -0
  18. data/ext/polars/src/expr/binary.rs +4 -42
  19. data/ext/polars/src/expr/datetime.rs +5 -4
  20. data/ext/polars/src/expr/general.rs +13 -22
  21. data/ext/polars/src/expr/list.rs +18 -11
  22. data/ext/polars/src/expr/rolling.rs +6 -7
  23. data/ext/polars/src/expr/string.rs +9 -36
  24. data/ext/polars/src/file.rs +59 -22
  25. data/ext/polars/src/functions/business.rs +15 -0
  26. data/ext/polars/src/functions/lazy.rs +17 -8
  27. data/ext/polars/src/functions/mod.rs +1 -0
  28. data/ext/polars/src/interop/arrow/mod.rs +1 -0
  29. data/ext/polars/src/interop/arrow/to_ruby.rs +83 -0
  30. data/ext/polars/src/interop/mod.rs +1 -0
  31. data/ext/polars/src/lazyframe/general.rs +877 -0
  32. data/ext/polars/src/lazyframe/mod.rs +3 -827
  33. data/ext/polars/src/lazyframe/serde.rs +31 -0
  34. data/ext/polars/src/lib.rs +45 -14
  35. data/ext/polars/src/map/dataframe.rs +10 -6
  36. data/ext/polars/src/map/lazy.rs +65 -4
  37. data/ext/polars/src/map/mod.rs +9 -8
  38. data/ext/polars/src/on_startup.rs +1 -1
  39. data/ext/polars/src/series/aggregation.rs +1 -5
  40. data/ext/polars/src/series/arithmetic.rs +10 -10
  41. data/ext/polars/src/series/construction.rs +2 -2
  42. data/ext/polars/src/series/export.rs +1 -1
  43. data/ext/polars/src/series/general.rs +643 -0
  44. data/ext/polars/src/series/import.rs +55 -0
  45. data/ext/polars/src/series/mod.rs +11 -638
  46. data/ext/polars/src/series/scatter.rs +2 -2
  47. data/ext/polars/src/utils.rs +0 -20
  48. data/lib/polars/batched_csv_reader.rb +0 -2
  49. data/lib/polars/binary_expr.rb +133 -9
  50. data/lib/polars/binary_name_space.rb +101 -6
  51. data/lib/polars/config.rb +4 -0
  52. data/lib/polars/data_frame.rb +275 -52
  53. data/lib/polars/data_type_group.rb +28 -0
  54. data/lib/polars/data_types.rb +2 -0
  55. data/lib/polars/date_time_expr.rb +244 -0
  56. data/lib/polars/date_time_name_space.rb +87 -0
  57. data/lib/polars/expr.rb +103 -2
  58. data/lib/polars/functions/as_datatype.rb +51 -2
  59. data/lib/polars/functions/col.rb +1 -1
  60. data/lib/polars/functions/eager.rb +1 -3
  61. data/lib/polars/functions/lazy.rb +88 -10
  62. data/lib/polars/functions/range/time_range.rb +21 -21
  63. data/lib/polars/io/csv.rb +14 -16
  64. data/lib/polars/io/database.rb +2 -2
  65. data/lib/polars/io/ipc.rb +14 -4
  66. data/lib/polars/io/ndjson.rb +10 -0
  67. data/lib/polars/io/parquet.rb +168 -111
  68. data/lib/polars/lazy_frame.rb +649 -15
  69. data/lib/polars/list_name_space.rb +169 -0
  70. data/lib/polars/selectors.rb +1144 -0
  71. data/lib/polars/series.rb +465 -35
  72. data/lib/polars/string_cache.rb +27 -1
  73. data/lib/polars/string_expr.rb +0 -1
  74. data/lib/polars/string_name_space.rb +73 -3
  75. data/lib/polars/struct_name_space.rb +31 -7
  76. data/lib/polars/utils/various.rb +5 -1
  77. data/lib/polars/utils.rb +45 -10
  78. data/lib/polars/version.rb +1 -1
  79. data/lib/polars.rb +2 -1
  80. metadata +14 -4
  81. data/lib/polars/functions.rb +0 -57
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 927cf7ce96510bfb770ac1bf7786e8720f33fd639fade419ce9d11b9fa31d38e
4
- data.tar.gz: c5b1b21db34d7b077c858ed096c928cac5f867b8bfdea2fbab9478ffdba1bb26
3
+ metadata.gz: a0cb16ed469de5f91350a64df092c73e535dbe83dd3f556623a8c1c556a4d143
4
+ data.tar.gz: 43e9d863d7e538e051c20409d16b289a9b8bf5bbc46bb1e957f015c25bd3f46e
5
5
  SHA512:
6
- metadata.gz: e643b3bbb226834143c49b72c0100b6160ee631fd14d67318d70481103e9e07e2d4a3912a1722c039dbb92d0c92dd7383ae57a8f671d30e7261a6ad5d489b486
7
- data.tar.gz: 93cb73a172209a493c4ea96b3085d4fe01b6dd4e792320e2d0adab4ea020dbe94faf78726d473478d9b5fc126ba691bcd1cdd54cbb88626e4eaf0a11c5f285f6
6
+ metadata.gz: fb5c8ce3bd83555e15bf829f286005612f8a9347afb87e8721fdd1bc1f58fe7219482a9c05993cd4a23f462fdca6da0b398818af0aa2915e3f260dff4337ccb3
7
+ data.tar.gz: 222daf0503fa45c63f7e835fa9dff3be62270c8c171def499b57cdd5fa94ffead34b759492d16749beca4f61ba732716922cea0a9becd2ef0a0d93f8ff591930
data/CHANGELOG.md CHANGED
@@ -1,3 +1,28 @@
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
+
1
26
  ## 0.14.0 (2024-09-17)
2
27
 
3
28
  - Updated Polars to 0.43.1