polars-df 0.10.0-x86_64-linux-musl

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 +7 -0
  2. data/.yardopts +3 -0
  3. data/CHANGELOG.md +175 -0
  4. data/Cargo.lock +2536 -0
  5. data/Cargo.toml +6 -0
  6. data/LICENSE-THIRD-PARTY.txt +38726 -0
  7. data/LICENSE.txt +20 -0
  8. data/README.md +437 -0
  9. data/lib/polars/3.1/polars.so +0 -0
  10. data/lib/polars/3.2/polars.so +0 -0
  11. data/lib/polars/3.3/polars.so +0 -0
  12. data/lib/polars/array_expr.rb +537 -0
  13. data/lib/polars/array_name_space.rb +423 -0
  14. data/lib/polars/batched_csv_reader.rb +98 -0
  15. data/lib/polars/binary_expr.rb +77 -0
  16. data/lib/polars/binary_name_space.rb +66 -0
  17. data/lib/polars/cat_expr.rb +72 -0
  18. data/lib/polars/cat_name_space.rb +125 -0
  19. data/lib/polars/config.rb +530 -0
  20. data/lib/polars/convert.rb +93 -0
  21. data/lib/polars/data_frame.rb +5418 -0
  22. data/lib/polars/data_types.rb +466 -0
  23. data/lib/polars/date_time_expr.rb +1444 -0
  24. data/lib/polars/date_time_name_space.rb +1484 -0
  25. data/lib/polars/dynamic_group_by.rb +52 -0
  26. data/lib/polars/exceptions.rb +31 -0
  27. data/lib/polars/expr.rb +6105 -0
  28. data/lib/polars/expr_dispatch.rb +22 -0
  29. data/lib/polars/functions/aggregation/horizontal.rb +246 -0
  30. data/lib/polars/functions/aggregation/vertical.rb +282 -0
  31. data/lib/polars/functions/as_datatype.rb +248 -0
  32. data/lib/polars/functions/col.rb +47 -0
  33. data/lib/polars/functions/eager.rb +182 -0
  34. data/lib/polars/functions/lazy.rb +1280 -0
  35. data/lib/polars/functions/len.rb +49 -0
  36. data/lib/polars/functions/lit.rb +35 -0
  37. data/lib/polars/functions/random.rb +16 -0
  38. data/lib/polars/functions/range/date_range.rb +103 -0
  39. data/lib/polars/functions/range/int_range.rb +51 -0
  40. data/lib/polars/functions/repeat.rb +144 -0
  41. data/lib/polars/functions/whenthen.rb +96 -0
  42. data/lib/polars/functions.rb +57 -0
  43. data/lib/polars/group_by.rb +548 -0
  44. data/lib/polars/io.rb +890 -0
  45. data/lib/polars/lazy_frame.rb +2833 -0
  46. data/lib/polars/lazy_group_by.rb +84 -0
  47. data/lib/polars/list_expr.rb +791 -0
  48. data/lib/polars/list_name_space.rb +445 -0
  49. data/lib/polars/meta_expr.rb +222 -0
  50. data/lib/polars/name_expr.rb +198 -0
  51. data/lib/polars/plot.rb +109 -0
  52. data/lib/polars/rolling_group_by.rb +37 -0
  53. data/lib/polars/series.rb +4527 -0
  54. data/lib/polars/slice.rb +104 -0
  55. data/lib/polars/sql_context.rb +194 -0
  56. data/lib/polars/string_cache.rb +75 -0
  57. data/lib/polars/string_expr.rb +1519 -0
  58. data/lib/polars/string_name_space.rb +810 -0
  59. data/lib/polars/struct_expr.rb +98 -0
  60. data/lib/polars/struct_name_space.rb +96 -0
  61. data/lib/polars/testing.rb +507 -0
  62. data/lib/polars/utils.rb +422 -0
  63. data/lib/polars/version.rb +4 -0
  64. data/lib/polars/whenthen.rb +83 -0
  65. data/lib/polars-df.rb +1 -0
  66. data/lib/polars.rb +72 -0
  67. metadata +125 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 6359a4bb6bc12bbce3a87fb2f9a6e2a8ef2ed60b6f7f50271a9cd7a09479193c
4
+ data.tar.gz: 20c2f069fcdef5abc4fb227f0b6d0dd0f856b3a6648f90bc4275ad48ed48f9ec
5
+ SHA512:
6
+ metadata.gz: f952dc55fc0acfd23207013cc70d518e57873c32f75a353baffdc4f0a239c75d006b72b01ba2bc07f42f673ec25e6261ac1ee36095d58135c26b54894c49ac4d
7
+ data.tar.gz: adf3b36ae544febb10ddbb13d472d526bcbf974596948365cc0760a6ab8aaf27205e1488ec81ae98eb9eeb9154030986292f6afa23f2394a460f44d24f621601
data/.yardopts ADDED
@@ -0,0 +1,3 @@
1
+ --no-private
2
+ --markup markdown
3
+ --embed-mixins
data/CHANGELOG.md ADDED
@@ -0,0 +1,175 @@
1
+ ## 0.10.0 (2024-05-02)
2
+
3
+ - Updated Polars to 0.39.2
4
+ - Added support for writing JSON to string
5
+ - Added support for writing Parquet to `StringIO`
6
+ - Added support for cross joins
7
+ - Added `data_page_size` option to `write_parquet` method
8
+ - Added `truncate_ragged_lines` option to `read_csv`, `read_csv_batched`, and `scan_csv` methods
9
+ - Added precompiled gem for Linux x86-64 MUSL
10
+ - Changed `drop` method to ignore missing columns
11
+ - Fixed error with `then` method
12
+
13
+ ## 0.9.0 (2024-03-03)
14
+
15
+ See the [upgrade guide](https://docs.pola.rs/releases/upgrade/0.20/)
16
+
17
+ - Updated Polars to 0.38.1
18
+ - Changed `count` method to exclude null values
19
+ - Changed `dtype` and `schema` methods to always return instances of data types
20
+ - Added `Enum` type
21
+ - Added `Testing` module
22
+ - Added `arctan2`, `arctan2d`, `set_random_seed`, and `sql_expr` methods to `Polars`
23
+ - Added `enable_string_cache`, `disable_string_cache`, and `using_string_cache` to `Polars`
24
+ - Added methods for horizontal aggregations to `Polars`
25
+ - Added `sink_ipc`, `sink_csv`, and `sink_ndjson` methods to `LazyFrame`
26
+ - Added `replace` method to `Series` and `Expr`
27
+ - Added `eq`, `eq_missing`, `ne`, and `ne_missing` methods to `Series` and `Expr`
28
+ - Added `ge`, `gt`, `le`, and `lt` methods to `Series` and `Expr`
29
+ - Added `merge_sorted` method to `DataFrame` and `LazyFrame`
30
+ - Added more methods to `ArrayExpr` and `ArrayNameSpace`
31
+ - Added more methods to `CatExpr` and `CatNameSpace`
32
+ - Added more methods to `ListExpr` and `ListNameSpace`
33
+ - Added more methods to `MetaExpr`
34
+ - Added more methods to `StringExpr`
35
+ - Added `schema_overrides` option to `read_database` method
36
+ - Added `join_nulls` option to `join` method
37
+ - Added `ignore_nulls` option to `any` and `all` methods
38
+ - Aliased `apply` to `map_elements` for `Series`
39
+ - Aliased `cleared` to `clear` for `DataFrame` and `LazyFrame`
40
+ - Fixed error with `BigDecimal` objects
41
+
42
+ ## 0.8.0 (2024-01-10)
43
+
44
+ - Updated Polars to 0.36.2
45
+ - Added support for Ruby 3.3
46
+ - Added warning to `count` method for `Series` and `Expr` about excluding null values in 0.9.0
47
+ - Added `cut` and `qcut` methods to `Series` and `Expr`
48
+ - Added `rle` and `rle_id` methods to `Series` and `Expr`
49
+ - Added `bottom_k` method to `Series`
50
+ - Aliased `Utf8` data type to `String`
51
+ - Fixed error with `top_k` method
52
+ - Dropped support for Ruby < 3.1
53
+
54
+ ## 0.7.0 (2023-11-17)
55
+
56
+ - Updated Polars to 0.35.2
57
+ - Added support for SQL querying
58
+ - Added `!` for `Expr`
59
+ - Added `Config` module
60
+ - Added `none?` method to `Series`
61
+ - Aliased `groupby` to `group` for `DataFrame` and `LazyFrame`
62
+ - Changed series creation with all `nil` objects to `Null` type
63
+ - Removed `tz_localize` method from `DateTimeExpr`
64
+ - Removed support for passing Active Record objects to `DataFrame.new` (use `read_database` instead)
65
+
66
+ ## 0.6.0 (2023-07-23)
67
+
68
+ - Updated Polars to 0.31.1
69
+ - Added `Array` type
70
+ - Added support for creating series with `Datetime` type
71
+ - Added support for `Null` to `to_a` method
72
+ - Improved support for `Decimal` and `Time` types
73
+ - Changed `arr` to `list` for `Series` and `Expr`
74
+ - Changed series creation with `BigDecimal` objects to `Decimal` type
75
+ - Changed series creation with `ActiveSupport::TimeWithZone` objects to `Datetime` type
76
+ - Changed equality for data types
77
+ - Fixed error with `groupby_dynamic` method
78
+ - Removed `agg_list` method from `GroupBy`
79
+
80
+ ## 0.5.0 (2023-05-15)
81
+
82
+ - Updated Polars to 0.29.0
83
+ - Added support for `List` and `Struct` to `to_a` method
84
+ - Added support for creating series from Numo arrays
85
+ - Added column assignment to `DataFrame`
86
+ - Added `sort!` and `to_a` methods to `DataFrame`
87
+ - Added support for `Object` to `to_a` method
88
+ - Aliased `len` to `size` for `Series` and `DataFrame`
89
+ - Aliased `apply` to `map` and `unique` to `uniq` for `Series`
90
+ - Improved `any` and `all` for `Series`
91
+
92
+ ## 0.4.0 (2023-04-01)
93
+
94
+ - Updated Polars to 0.28.0
95
+ - Added support for creating `Binary` series
96
+ - Added support for `Binary` to `to_a` method
97
+ - Added support for glob patterns to `read_parquet` method
98
+ - Added `sink_parquet` method to `LazyFrame`
99
+ - Added `BinaryExpr` and `BinaryNameSpace`
100
+ - Prefer `read_database` over `read_sql`
101
+
102
+ ## 0.3.1 (2023-02-21)
103
+
104
+ - Added `plot` method to `DataFrame` and `GroupBy`
105
+ - Added `to_numo` method to `Series` and `DataFrame`
106
+ - Added support for `Datetime` to `to_a` method
107
+ - Fixed `is_datelike` method for `Datetime` and `Duration`
108
+
109
+ ## 0.3.0 (2023-02-15)
110
+
111
+ - Updated Polars to 0.27.1
112
+ - Added `each` method to `Series`, `DataFrame`, and `GroupBy`
113
+ - Added `iter_rows` method to `DataFrame`
114
+ - Added `named` option to `row` and `rows` methods
115
+ - Replaced `include_bounds` option with `closed` for `is_between` method
116
+
117
+ ## 0.2.5 (2023-02-01)
118
+
119
+ - Added support for glob patterns to `read_csv` method
120
+ - Added support for symbols to more methods
121
+
122
+ ## 0.2.4 (2023-01-29)
123
+
124
+ - Added support for more types when creating a data frame from an array of hashes
125
+
126
+ ## 0.2.3 (2023-01-22)
127
+
128
+ - Fixed error with precompiled gem on Mac ARM
129
+ - Fixed issue with structs
130
+
131
+ ## 0.2.2 (2023-01-20)
132
+
133
+ - Added support for strings to `read_sql` method
134
+ - Improved indexing
135
+ - Fixed error with precompiled gem on Mac ARM
136
+
137
+ ## 0.2.1 (2023-01-18)
138
+
139
+ - Added `read_sql` method
140
+ - Added `to_csv` method
141
+ - Added support for symbol keys
142
+
143
+ ## 0.2.0 (2023-01-14)
144
+
145
+ - Updated Polars to 0.26.1
146
+ - Added precompiled gems for Linux and Mac
147
+ - Added data type classes
148
+ - Changed `dtype` and `schema` methods to return data type class instead of symbol
149
+ - Dropped support for Ruby < 3
150
+
151
+ ## 0.1.5 (2022-12-22)
152
+
153
+ - Added `read_avro` and `write_avro` methods
154
+ - Added more methods
155
+
156
+ ## 0.1.4 (2022-12-02)
157
+
158
+ - Added more methods
159
+ - Improved performance
160
+
161
+ ## 0.1.3 (2022-11-27)
162
+
163
+ - Added more methods
164
+
165
+ ## 0.1.2 (2022-11-25)
166
+
167
+ - Added more methods
168
+
169
+ ## 0.1.1 (2022-11-23)
170
+
171
+ - Added more methods
172
+
173
+ ## 0.1.0 (2022-11-21)
174
+
175
+ - First release