polars-df 0.6.0 → 0.7.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (67) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +12 -0
  3. data/Cargo.lock +468 -538
  4. data/Cargo.toml +1 -0
  5. data/README.md +8 -7
  6. data/ext/polars/Cargo.toml +17 -10
  7. data/ext/polars/src/batched_csv.rs +26 -26
  8. data/ext/polars/src/conversion.rs +121 -93
  9. data/ext/polars/src/dataframe.rs +116 -71
  10. data/ext/polars/src/error.rs +0 -5
  11. data/ext/polars/src/expr/binary.rs +18 -6
  12. data/ext/polars/src/expr/datetime.rs +10 -12
  13. data/ext/polars/src/expr/general.rs +68 -284
  14. data/ext/polars/src/expr/list.rs +17 -9
  15. data/ext/polars/src/{expr.rs → expr/mod.rs} +4 -2
  16. data/ext/polars/src/expr/name.rs +44 -0
  17. data/ext/polars/src/expr/rolling.rs +196 -0
  18. data/ext/polars/src/expr/string.rs +85 -58
  19. data/ext/polars/src/file.rs +3 -3
  20. data/ext/polars/src/functions/aggregation.rs +35 -0
  21. data/ext/polars/src/functions/eager.rs +7 -31
  22. data/ext/polars/src/functions/io.rs +10 -10
  23. data/ext/polars/src/functions/lazy.rs +66 -41
  24. data/ext/polars/src/functions/meta.rs +30 -0
  25. data/ext/polars/src/functions/misc.rs +8 -0
  26. data/ext/polars/src/functions/mod.rs +5 -0
  27. data/ext/polars/src/functions/random.rs +6 -0
  28. data/ext/polars/src/functions/range.rs +46 -0
  29. data/ext/polars/src/functions/string_cache.rs +11 -0
  30. data/ext/polars/src/functions/whenthen.rs +7 -7
  31. data/ext/polars/src/lazyframe.rs +47 -42
  32. data/ext/polars/src/lib.rs +156 -72
  33. data/ext/polars/src/{apply → map}/dataframe.rs +28 -33
  34. data/ext/polars/src/{apply → map}/mod.rs +3 -3
  35. data/ext/polars/src/{apply → map}/series.rs +12 -16
  36. data/ext/polars/src/object.rs +1 -1
  37. data/ext/polars/src/rb_modules.rs +22 -7
  38. data/ext/polars/src/series/construction.rs +4 -4
  39. data/ext/polars/src/series/export.rs +2 -2
  40. data/ext/polars/src/series/set_at_idx.rs +33 -17
  41. data/ext/polars/src/series.rs +7 -27
  42. data/ext/polars/src/sql.rs +46 -0
  43. data/lib/polars/config.rb +530 -0
  44. data/lib/polars/data_frame.rb +115 -82
  45. data/lib/polars/date_time_expr.rb +13 -18
  46. data/lib/polars/date_time_name_space.rb +5 -25
  47. data/lib/polars/dynamic_group_by.rb +2 -2
  48. data/lib/polars/expr.rb +177 -94
  49. data/lib/polars/functions.rb +29 -37
  50. data/lib/polars/group_by.rb +38 -55
  51. data/lib/polars/io.rb +37 -2
  52. data/lib/polars/lazy_frame.rb +93 -66
  53. data/lib/polars/lazy_functions.rb +36 -48
  54. data/lib/polars/lazy_group_by.rb +7 -8
  55. data/lib/polars/list_expr.rb +12 -8
  56. data/lib/polars/list_name_space.rb +2 -2
  57. data/lib/polars/name_expr.rb +198 -0
  58. data/lib/polars/rolling_group_by.rb +2 -2
  59. data/lib/polars/series.rb +26 -13
  60. data/lib/polars/sql_context.rb +194 -0
  61. data/lib/polars/string_expr.rb +114 -60
  62. data/lib/polars/string_name_space.rb +19 -4
  63. data/lib/polars/utils.rb +12 -0
  64. data/lib/polars/version.rb +1 -1
  65. data/lib/polars.rb +3 -0
  66. metadata +18 -7
  67. /data/ext/polars/src/{apply → map}/lazy.rs +0 -0
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3a804a25769eff253d2b28a66d63d5fce9e9ffae28b531c57cb17acf257c985b
4
- data.tar.gz: cf9204050bf43b63c5989e374564b1f5eaeb607607305d8549938faad2f68461
3
+ metadata.gz: 242f2ba697a7d6ceb99c90d9252a5060bb7b86b1d43051d3e06d9ba85357f763
4
+ data.tar.gz: a9ac6960779c7dc4d44799183d399a4576e312ba8834af9aa52c413ec7f3d9ae
5
5
  SHA512:
6
- metadata.gz: 3e1affded11c904eaa0d4781d545295824777dc2c334d9bcfeee9da67498e4e3c8aed5aefab7ff63c3c03f2f5fef7e5274658ce65f9d3171bee31e7903e58cab
7
- data.tar.gz: 3e82dde7d3212539aa339dd874604422ad7e6fb87393541968795e52d9c256104239d66cdab29f39b5f8f37d2936101b193f65f864791e143796da78663a84d9
6
+ metadata.gz: bdfd935b91045da2c3f36737f71bd115ebffb48be2a8662303bc15ab7aa64bed9c18b424ef9e1a2150aabc885f50537e0310788f0f07af73ae0d3db2b526e577
7
+ data.tar.gz: abd6e924a48d5822a10084419ba95e3f48966b888432f712bb13166f99740e15c12991bf49cdcc26a8509d3316026873ec1ce067c5d1e58bbc1daab163d68f19
data/CHANGELOG.md CHANGED
@@ -1,3 +1,15 @@
1
+ ## 0.7.0 (2023-11-17)
2
+
3
+ - Updated Polars to 0.35.2
4
+ - Added support for SQL querying
5
+ - Added `!` for `Expr`
6
+ - Added `Config` module
7
+ - Added `none?` method to `Series`
8
+ - Aliased `groupby` to `group` for `DataFrame` and `LazyFrame`
9
+ - Changed series creation with all `nil` objects to `Null` type
10
+ - Removed `tz_localize` method from `DateTimeExpr`
11
+ - Removed support for passing Active Record objects to `DataFrame.new` (use `read_database` instead)
12
+
1
13
  ## 0.6.0 (2023-07-23)
2
14
 
3
15
  - Updated Polars to 0.31.1