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.
Files changed (86) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +30 -0
  3. data/Cargo.lock +1368 -319
  4. data/LICENSE.txt +1 -0
  5. data/README.md +1 -2
  6. data/ext/polars/Cargo.toml +15 -6
  7. data/ext/polars/src/batched_csv.rs +10 -13
  8. data/ext/polars/src/conversion/any_value.rs +37 -21
  9. data/ext/polars/src/conversion/chunked_array.rs +3 -3
  10. data/ext/polars/src/conversion/mod.rs +159 -46
  11. data/ext/polars/src/dataframe/construction.rs +4 -7
  12. data/ext/polars/src/dataframe/export.rs +9 -2
  13. data/ext/polars/src/dataframe/general.rs +22 -16
  14. data/ext/polars/src/dataframe/io.rs +78 -174
  15. data/ext/polars/src/dataframe/mod.rs +1 -0
  16. data/ext/polars/src/dataframe/serde.rs +15 -0
  17. data/ext/polars/src/error.rs +31 -48
  18. data/ext/polars/src/exceptions.rs +24 -0
  19. data/ext/polars/src/expr/binary.rs +4 -42
  20. data/ext/polars/src/expr/datetime.rs +16 -7
  21. data/ext/polars/src/expr/general.rs +14 -23
  22. data/ext/polars/src/expr/list.rs +18 -11
  23. data/ext/polars/src/expr/name.rs +3 -2
  24. data/ext/polars/src/expr/rolling.rs +6 -7
  25. data/ext/polars/src/expr/string.rs +17 -37
  26. data/ext/polars/src/file.rs +59 -22
  27. data/ext/polars/src/functions/business.rs +15 -0
  28. data/ext/polars/src/functions/io.rs +6 -6
  29. data/ext/polars/src/functions/lazy.rs +17 -8
  30. data/ext/polars/src/functions/mod.rs +1 -0
  31. data/ext/polars/src/functions/range.rs +4 -2
  32. data/ext/polars/src/interop/arrow/mod.rs +1 -0
  33. data/ext/polars/src/interop/arrow/to_ruby.rs +83 -0
  34. data/ext/polars/src/interop/mod.rs +1 -0
  35. data/ext/polars/src/lazyframe/general.rs +877 -0
  36. data/ext/polars/src/lazyframe/mod.rs +3 -825
  37. data/ext/polars/src/lazyframe/serde.rs +31 -0
  38. data/ext/polars/src/lib.rs +44 -13
  39. data/ext/polars/src/map/dataframe.rs +46 -14
  40. data/ext/polars/src/map/lazy.rs +65 -4
  41. data/ext/polars/src/map/mod.rs +17 -16
  42. data/ext/polars/src/map/series.rs +106 -64
  43. data/ext/polars/src/on_startup.rs +2 -2
  44. data/ext/polars/src/series/aggregation.rs +1 -5
  45. data/ext/polars/src/series/arithmetic.rs +10 -10
  46. data/ext/polars/src/series/construction.rs +52 -25
  47. data/ext/polars/src/series/export.rs +1 -1
  48. data/ext/polars/src/series/general.rs +643 -0
  49. data/ext/polars/src/series/import.rs +55 -0
  50. data/ext/polars/src/series/mod.rs +11 -638
  51. data/ext/polars/src/series/scatter.rs +2 -2
  52. data/ext/polars/src/utils.rs +0 -20
  53. data/lib/polars/batched_csv_reader.rb +0 -2
  54. data/lib/polars/binary_expr.rb +133 -9
  55. data/lib/polars/binary_name_space.rb +101 -6
  56. data/lib/polars/config.rb +4 -0
  57. data/lib/polars/data_frame.rb +285 -62
  58. data/lib/polars/data_type_group.rb +28 -0
  59. data/lib/polars/data_types.rb +2 -0
  60. data/lib/polars/date_time_expr.rb +244 -0
  61. data/lib/polars/date_time_name_space.rb +87 -0
  62. data/lib/polars/expr.rb +109 -8
  63. data/lib/polars/functions/as_datatype.rb +51 -2
  64. data/lib/polars/functions/col.rb +1 -1
  65. data/lib/polars/functions/eager.rb +1 -3
  66. data/lib/polars/functions/lazy.rb +88 -10
  67. data/lib/polars/functions/range/time_range.rb +21 -21
  68. data/lib/polars/io/csv.rb +14 -16
  69. data/lib/polars/io/database.rb +2 -2
  70. data/lib/polars/io/ipc.rb +14 -12
  71. data/lib/polars/io/ndjson.rb +10 -0
  72. data/lib/polars/io/parquet.rb +168 -111
  73. data/lib/polars/lazy_frame.rb +649 -15
  74. data/lib/polars/list_name_space.rb +169 -0
  75. data/lib/polars/selectors.rb +1144 -0
  76. data/lib/polars/series.rb +470 -40
  77. data/lib/polars/string_cache.rb +27 -1
  78. data/lib/polars/string_expr.rb +0 -1
  79. data/lib/polars/string_name_space.rb +73 -3
  80. data/lib/polars/struct_name_space.rb +31 -7
  81. data/lib/polars/utils/various.rb +5 -1
  82. data/lib/polars/utils.rb +45 -10
  83. data/lib/polars/version.rb +1 -1
  84. data/lib/polars.rb +2 -1
  85. metadata +14 -4
  86. data/lib/polars/functions.rb +0 -57
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d39618dc136680fcd357747c68b8c634a2807e354d64e7eef43a309350056208
4
- data.tar.gz: 9e3fdb02d8b8e5f52ab4895c77a579b4e04d7ec3c320b1bfbd4bed9288571459
3
+ metadata.gz: a0cb16ed469de5f91350a64df092c73e535dbe83dd3f556623a8c1c556a4d143
4
+ data.tar.gz: 43e9d863d7e538e051c20409d16b289a9b8bf5bbc46bb1e957f015c25bd3f46e
5
5
  SHA512:
6
- metadata.gz: 48ad9c88889c2617ac4b64cf2396b491bd105c84b71e573f996b7beb1142016d5a3160d22d4506b3b15a7ffc82ff5f913bde347b463b88c857d20afd6995066d
7
- data.tar.gz: 6492af6dd5c98615bdad1b89dd187869efa9a927ca2ba4824881b9e4134efb2ad7f3329e2a7510a0f674d4fcaf84f7e34f3cf6b0c77564eed7b39fb879ba0e96
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