polars-df 0.13.0-x64-mingw-ucrt

Sign up to get free protection for your applications and to get access to all the features.
Files changed (80) hide show
  1. checksums.yaml +7 -0
  2. data/.yardopts +3 -0
  3. data/CHANGELOG.md +208 -0
  4. data/Cargo.lock +2556 -0
  5. data/Cargo.toml +6 -0
  6. data/LICENSE-THIRD-PARTY.txt +39278 -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 +104 -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 +36 -0
  18. data/lib/polars/cat_name_space.rb +88 -0
  19. data/lib/polars/config.rb +530 -0
  20. data/lib/polars/convert.rb +98 -0
  21. data/lib/polars/data_frame.rb +5191 -0
  22. data/lib/polars/data_types.rb +466 -0
  23. data/lib/polars/date_time_expr.rb +1397 -0
  24. data/lib/polars/date_time_name_space.rb +1287 -0
  25. data/lib/polars/dynamic_group_by.rb +52 -0
  26. data/lib/polars/exceptions.rb +38 -0
  27. data/lib/polars/expr.rb +7256 -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 +271 -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 +1329 -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 +136 -0
  39. data/lib/polars/functions/range/datetime_range.rb +149 -0
  40. data/lib/polars/functions/range/int_range.rb +51 -0
  41. data/lib/polars/functions/range/time_range.rb +141 -0
  42. data/lib/polars/functions/repeat.rb +144 -0
  43. data/lib/polars/functions/whenthen.rb +96 -0
  44. data/lib/polars/functions.rb +57 -0
  45. data/lib/polars/group_by.rb +613 -0
  46. data/lib/polars/io/avro.rb +24 -0
  47. data/lib/polars/io/csv.rb +696 -0
  48. data/lib/polars/io/database.rb +73 -0
  49. data/lib/polars/io/ipc.rb +275 -0
  50. data/lib/polars/io/json.rb +29 -0
  51. data/lib/polars/io/ndjson.rb +80 -0
  52. data/lib/polars/io/parquet.rb +233 -0
  53. data/lib/polars/lazy_frame.rb +2708 -0
  54. data/lib/polars/lazy_group_by.rb +181 -0
  55. data/lib/polars/list_expr.rb +791 -0
  56. data/lib/polars/list_name_space.rb +449 -0
  57. data/lib/polars/meta_expr.rb +222 -0
  58. data/lib/polars/name_expr.rb +198 -0
  59. data/lib/polars/plot.rb +109 -0
  60. data/lib/polars/rolling_group_by.rb +35 -0
  61. data/lib/polars/series.rb +4444 -0
  62. data/lib/polars/slice.rb +104 -0
  63. data/lib/polars/sql_context.rb +194 -0
  64. data/lib/polars/string_cache.rb +75 -0
  65. data/lib/polars/string_expr.rb +1495 -0
  66. data/lib/polars/string_name_space.rb +811 -0
  67. data/lib/polars/struct_expr.rb +98 -0
  68. data/lib/polars/struct_name_space.rb +96 -0
  69. data/lib/polars/testing.rb +507 -0
  70. data/lib/polars/utils/constants.rb +9 -0
  71. data/lib/polars/utils/convert.rb +97 -0
  72. data/lib/polars/utils/parse.rb +89 -0
  73. data/lib/polars/utils/various.rb +76 -0
  74. data/lib/polars/utils/wrap.rb +19 -0
  75. data/lib/polars/utils.rb +130 -0
  76. data/lib/polars/version.rb +4 -0
  77. data/lib/polars/whenthen.rb +83 -0
  78. data/lib/polars-df.rb +1 -0
  79. data/lib/polars.rb +91 -0
  80. metadata +138 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 3e100ce76772067578665fd1e5597f25c034680883e90cb8a1dcd46b5c7b981e
4
+ data.tar.gz: c9f9560922a79fc540588634f704d911475cb795a411755dded172604c806ff3
5
+ SHA512:
6
+ metadata.gz: 68767ce6b7217d122eac814ef520c600398411e72f0be687d42d330addc038288d89bd07dfe2eff51e803d20ed8698f1def611e5f8961e3f30ffe7e279dc6474
7
+ data.tar.gz: f3dbe106b739e0234e199faa7851801751647c5eaf3388550e6faa7d59ec06341eb4d8c504d4f56f913419cdfb74ea0912697535c03b7c52a0f1ef7dea24980f
data/.yardopts ADDED
@@ -0,0 +1,3 @@
1
+ --no-private
2
+ --markup markdown
3
+ --embed-mixins
data/CHANGELOG.md ADDED
@@ -0,0 +1,208 @@
1
+ ## 0.13.0 (2024-09-04)
2
+
3
+ - Updated Polars to 0.42.0
4
+ - Added precompiled gem for Linux ARM MUSL
5
+ - Added precompiled gem for Windows
6
+
7
+ ## 0.12.0 (2024-07-11)
8
+
9
+ - Updated Polars to 0.41.3
10
+ - Added `nth` method to `Polars`
11
+ - Added `get` method to `Expr`
12
+ - Added `check_names` option to `equals` method
13
+ - Improved `struct` method
14
+ - Aliased `melt` to `unpivot` for `DataFrame` and `LazyFrame`
15
+ - Changed signature of `pivot` and `melt` methods
16
+ - Changed signature of `date_range` and `date_ranges` methods
17
+ - Changed `set_sorted` method to only accept a single column
18
+ - Removed `use_earliest` option from `replace_time_zone` and `to_datetime` methods (use `ambiguous` instead)
19
+ - Removed `by` and `closed` options from `rolling_*` methods (use `rolling_*_by` instead)
20
+ - Removed `explode` method from `StringExpr` (use `split("").explode` instead)
21
+ - Removed `set_ordering` method from `CatExpr`
22
+
23
+ ## 0.11.0 (2024-06-02)
24
+
25
+ - Updated Polars to 0.40.0
26
+ - Added `date_ranges` method to `Polars`
27
+ - Added `read_ipc_stream` method to `Polars`
28
+ - Added `write_ipc_stream` to `DataFrame`
29
+ - Added `flags` method to `DataFrame`
30
+ - Added support for keyword arguments to `agg` methods
31
+ - Aliased `apply` to `map_rows` for `DataFrame`
32
+ - Changed default `name` for `with_row_index` from `row_nr` to `index`
33
+
34
+ ## 0.10.0 (2024-05-02)
35
+
36
+ - Updated Polars to 0.39.2
37
+ - Added support for writing JSON to string
38
+ - Added support for writing Parquet to `StringIO`
39
+ - Added support for cross joins
40
+ - Added `data_page_size` option to `write_parquet` method
41
+ - Added `truncate_ragged_lines` option to `read_csv`, `read_csv_batched`, and `scan_csv` methods
42
+ - Added precompiled gem for Linux x86-64 MUSL
43
+ - Changed `drop` method to ignore missing columns
44
+ - Fixed error with `then` method
45
+
46
+ ## 0.9.0 (2024-03-03)
47
+
48
+ See the [upgrade guide](https://docs.pola.rs/releases/upgrade/0.20/)
49
+
50
+ - Updated Polars to 0.38.1
51
+ - Changed `count` method to exclude null values
52
+ - Changed `dtype` and `schema` methods to always return instances of data types
53
+ - Added `Enum` type
54
+ - Added `Testing` module
55
+ - Added `arctan2`, `arctan2d`, `set_random_seed`, and `sql_expr` methods to `Polars`
56
+ - Added `enable_string_cache`, `disable_string_cache`, and `using_string_cache` to `Polars`
57
+ - Added methods for horizontal aggregations to `Polars`
58
+ - Added `sink_ipc`, `sink_csv`, and `sink_ndjson` methods to `LazyFrame`
59
+ - Added `replace` method to `Series` and `Expr`
60
+ - Added `eq`, `eq_missing`, `ne`, and `ne_missing` methods to `Series` and `Expr`
61
+ - Added `ge`, `gt`, `le`, and `lt` methods to `Series` and `Expr`
62
+ - Added `merge_sorted` method to `DataFrame` and `LazyFrame`
63
+ - Added more methods to `ArrayExpr` and `ArrayNameSpace`
64
+ - Added more methods to `CatExpr` and `CatNameSpace`
65
+ - Added more methods to `ListExpr` and `ListNameSpace`
66
+ - Added more methods to `MetaExpr`
67
+ - Added more methods to `StringExpr`
68
+ - Added `schema_overrides` option to `read_database` method
69
+ - Added `join_nulls` option to `join` method
70
+ - Added `ignore_nulls` option to `any` and `all` methods
71
+ - Aliased `apply` to `map_elements` for `Series`
72
+ - Aliased `cleared` to `clear` for `DataFrame` and `LazyFrame`
73
+ - Fixed error with `BigDecimal` objects
74
+
75
+ ## 0.8.0 (2024-01-10)
76
+
77
+ - Updated Polars to 0.36.2
78
+ - Added support for Ruby 3.3
79
+ - Added warning to `count` method for `Series` and `Expr` about excluding null values in 0.9.0
80
+ - Added `cut` and `qcut` methods to `Series` and `Expr`
81
+ - Added `rle` and `rle_id` methods to `Series` and `Expr`
82
+ - Added `bottom_k` method to `Series`
83
+ - Aliased `Utf8` data type to `String`
84
+ - Fixed error with `top_k` method
85
+ - Dropped support for Ruby < 3.1
86
+
87
+ ## 0.7.0 (2023-11-17)
88
+
89
+ - Updated Polars to 0.35.2
90
+ - Added support for SQL querying
91
+ - Added `!` for `Expr`
92
+ - Added `Config` module
93
+ - Added `none?` method to `Series`
94
+ - Aliased `groupby` to `group` for `DataFrame` and `LazyFrame`
95
+ - Changed series creation with all `nil` objects to `Null` type
96
+ - Removed `tz_localize` method from `DateTimeExpr`
97
+ - Removed support for passing Active Record objects to `DataFrame.new` (use `read_database` instead)
98
+
99
+ ## 0.6.0 (2023-07-23)
100
+
101
+ - Updated Polars to 0.31.1
102
+ - Added `Array` type
103
+ - Added support for creating series with `Datetime` type
104
+ - Added support for `Null` to `to_a` method
105
+ - Improved support for `Decimal` and `Time` types
106
+ - Changed `arr` to `list` for `Series` and `Expr`
107
+ - Changed series creation with `BigDecimal` objects to `Decimal` type
108
+ - Changed series creation with `ActiveSupport::TimeWithZone` objects to `Datetime` type
109
+ - Changed equality for data types
110
+ - Fixed error with `groupby_dynamic` method
111
+ - Removed `agg_list` method from `GroupBy`
112
+
113
+ ## 0.5.0 (2023-05-15)
114
+
115
+ - Updated Polars to 0.29.0
116
+ - Added support for `List` and `Struct` to `to_a` method
117
+ - Added support for creating series from Numo arrays
118
+ - Added column assignment to `DataFrame`
119
+ - Added `sort!` and `to_a` methods to `DataFrame`
120
+ - Added support for `Object` to `to_a` method
121
+ - Aliased `len` to `size` for `Series` and `DataFrame`
122
+ - Aliased `apply` to `map` and `unique` to `uniq` for `Series`
123
+ - Improved `any` and `all` for `Series`
124
+
125
+ ## 0.4.0 (2023-04-01)
126
+
127
+ - Updated Polars to 0.28.0
128
+ - Added support for creating `Binary` series
129
+ - Added support for `Binary` to `to_a` method
130
+ - Added support for glob patterns to `read_parquet` method
131
+ - Added `sink_parquet` method to `LazyFrame`
132
+ - Added `BinaryExpr` and `BinaryNameSpace`
133
+ - Prefer `read_database` over `read_sql`
134
+
135
+ ## 0.3.1 (2023-02-21)
136
+
137
+ - Added `plot` method to `DataFrame` and `GroupBy`
138
+ - Added `to_numo` method to `Series` and `DataFrame`
139
+ - Added support for `Datetime` to `to_a` method
140
+ - Fixed `is_datelike` method for `Datetime` and `Duration`
141
+
142
+ ## 0.3.0 (2023-02-15)
143
+
144
+ - Updated Polars to 0.27.1
145
+ - Added `each` method to `Series`, `DataFrame`, and `GroupBy`
146
+ - Added `iter_rows` method to `DataFrame`
147
+ - Added `named` option to `row` and `rows` methods
148
+ - Replaced `include_bounds` option with `closed` for `is_between` method
149
+
150
+ ## 0.2.5 (2023-02-01)
151
+
152
+ - Added support for glob patterns to `read_csv` method
153
+ - Added support for symbols to more methods
154
+
155
+ ## 0.2.4 (2023-01-29)
156
+
157
+ - Added support for more types when creating a data frame from an array of hashes
158
+
159
+ ## 0.2.3 (2023-01-22)
160
+
161
+ - Fixed error with precompiled gem on Mac ARM
162
+ - Fixed issue with structs
163
+
164
+ ## 0.2.2 (2023-01-20)
165
+
166
+ - Added support for strings to `read_sql` method
167
+ - Improved indexing
168
+ - Fixed error with precompiled gem on Mac ARM
169
+
170
+ ## 0.2.1 (2023-01-18)
171
+
172
+ - Added `read_sql` method
173
+ - Added `to_csv` method
174
+ - Added support for symbol keys
175
+
176
+ ## 0.2.0 (2023-01-14)
177
+
178
+ - Updated Polars to 0.26.1
179
+ - Added precompiled gems for Linux and Mac
180
+ - Added data type classes
181
+ - Changed `dtype` and `schema` methods to return data type class instead of symbol
182
+ - Dropped support for Ruby < 3
183
+
184
+ ## 0.1.5 (2022-12-22)
185
+
186
+ - Added `read_avro` and `write_avro` methods
187
+ - Added more methods
188
+
189
+ ## 0.1.4 (2022-12-02)
190
+
191
+ - Added more methods
192
+ - Improved performance
193
+
194
+ ## 0.1.3 (2022-11-27)
195
+
196
+ - Added more methods
197
+
198
+ ## 0.1.2 (2022-11-25)
199
+
200
+ - Added more methods
201
+
202
+ ## 0.1.1 (2022-11-23)
203
+
204
+ - Added more methods
205
+
206
+ ## 0.1.0 (2022-11-21)
207
+
208
+ - First release