polars-df 0.13.0-aarch64-linux → 0.14.0-aarch64-linux
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/Cargo.lock +177 -141
- data/LICENSE-THIRD-PARTY.txt +234 -513
- data/lib/polars/3.1/polars.so +0 -0
- data/lib/polars/3.2/polars.so +0 -0
- data/lib/polars/3.3/polars.so +0 -0
- data/lib/polars/data_frame.rb +10 -10
- data/lib/polars/expr.rb +6 -6
- data/lib/polars/io/ipc.rb +0 -8
- data/lib/polars/series.rb +5 -5
- data/lib/polars/version.rb +1 -1
- metadata +2 -2
data/lib/polars/3.1/polars.so
CHANGED
Binary file
|
data/lib/polars/3.2/polars.so
CHANGED
Binary file
|
data/lib/polars/3.3/polars.so
CHANGED
Binary file
|
data/lib/polars/data_frame.rb
CHANGED
@@ -2426,15 +2426,15 @@ module Polars
|
|
2426
2426
|
# df.map_rows { |t| t[0] * 2 + t[1] }
|
2427
2427
|
# # =>
|
2428
2428
|
# # shape: (3, 1)
|
2429
|
-
# #
|
2430
|
-
# # │
|
2431
|
-
# # │ ---
|
2432
|
-
# # │ i64
|
2433
|
-
# #
|
2434
|
-
# # │ 1
|
2435
|
-
# # │ 9
|
2436
|
-
# # │ 14
|
2437
|
-
# #
|
2429
|
+
# # ┌─────┐
|
2430
|
+
# # │ map │
|
2431
|
+
# # │ --- │
|
2432
|
+
# # │ i64 │
|
2433
|
+
# # ╞═════╡
|
2434
|
+
# # │ 1 │
|
2435
|
+
# # │ 9 │
|
2436
|
+
# # │ 14 │
|
2437
|
+
# # └─────┘
|
2438
2438
|
def map_rows(return_dtype: nil, inference_size: 256, &f)
|
2439
2439
|
out, is_df = _df.map_rows(f, return_dtype, inference_size)
|
2440
2440
|
if is_df
|
@@ -4234,7 +4234,7 @@ module Polars
|
|
4234
4234
|
if n.nil? && !frac.nil?
|
4235
4235
|
frac = Series.new("frac", [frac]) unless frac.is_a?(Series)
|
4236
4236
|
|
4237
|
-
_from_rbdf(
|
4237
|
+
return _from_rbdf(
|
4238
4238
|
_df.sample_frac(frac._s, with_replacement, shuffle, seed)
|
4239
4239
|
)
|
4240
4240
|
end
|
data/lib/polars/expr.rb
CHANGED
@@ -1182,7 +1182,7 @@ module Polars
|
|
1182
1182
|
# "b" => [1, 1, 2, 2]
|
1183
1183
|
# }
|
1184
1184
|
# )
|
1185
|
-
# df.select(Polars.all.mode)
|
1185
|
+
# df.select(Polars.all.mode.first)
|
1186
1186
|
# # =>
|
1187
1187
|
# # shape: (2, 2)
|
1188
1188
|
# # ┌─────┬─────┐
|
@@ -6015,12 +6015,12 @@ module Polars
|
|
6015
6015
|
# # ┌──────┐
|
6016
6016
|
# # │ a │
|
6017
6017
|
# # │ --- │
|
6018
|
-
# # │
|
6018
|
+
# # │ f64 │
|
6019
6019
|
# # ╞══════╡
|
6020
|
-
# # │ -1
|
6021
|
-
# # │ 0
|
6022
|
-
# # │ 0
|
6023
|
-
# # │ 1
|
6020
|
+
# # │ -1.0 │
|
6021
|
+
# # │ -0.0 │
|
6022
|
+
# # │ 0.0 │
|
6023
|
+
# # │ 1.0 │
|
6024
6024
|
# # │ null │
|
6025
6025
|
# # └──────┘
|
6026
6026
|
def sign
|
data/lib/polars/io/ipc.rb
CHANGED
@@ -189,10 +189,6 @@ module Polars
|
|
189
189
|
# Offset to start the row_count column (only use if the name is set).
|
190
190
|
# @param storage_options [Hash]
|
191
191
|
# Extra options that make sense for a particular storage connection.
|
192
|
-
# @param memory_map [Boolean]
|
193
|
-
# Try to memory map the file. This can greatly improve performance on repeated
|
194
|
-
# queries as the OS may cache pages.
|
195
|
-
# Only uncompressed IPC files can be memory mapped.
|
196
192
|
# @param hive_partitioning [Boolean]
|
197
193
|
# Infer statistics and schema from Hive partitioned URL and use them
|
198
194
|
# to prune reads. This is unset by default (i.e. `nil`), meaning it is
|
@@ -215,7 +211,6 @@ module Polars
|
|
215
211
|
row_count_name: nil,
|
216
212
|
row_count_offset: 0,
|
217
213
|
storage_options: nil,
|
218
|
-
memory_map: true,
|
219
214
|
hive_partitioning: nil,
|
220
215
|
hive_schema: nil,
|
221
216
|
try_parse_hive_dates: true,
|
@@ -229,7 +224,6 @@ module Polars
|
|
229
224
|
row_count_name: row_count_name,
|
230
225
|
row_count_offset: row_count_offset,
|
231
226
|
storage_options: storage_options,
|
232
|
-
memory_map: memory_map,
|
233
227
|
hive_partitioning: hive_partitioning,
|
234
228
|
hive_schema: hive_schema,
|
235
229
|
try_parse_hive_dates: try_parse_hive_dates,
|
@@ -246,7 +240,6 @@ module Polars
|
|
246
240
|
row_count_name: nil,
|
247
241
|
row_count_offset: 0,
|
248
242
|
storage_options: nil,
|
249
|
-
memory_map: true,
|
250
243
|
hive_partitioning: nil,
|
251
244
|
hive_schema: nil,
|
252
245
|
try_parse_hive_dates: true,
|
@@ -263,7 +256,6 @@ module Polars
|
|
263
256
|
cache,
|
264
257
|
rechunk,
|
265
258
|
Utils.parse_row_index_args(row_count_name, row_count_offset),
|
266
|
-
memory_map,
|
267
259
|
hive_partitioning,
|
268
260
|
hive_schema,
|
269
261
|
try_parse_hive_dates,
|
data/lib/polars/series.rb
CHANGED
@@ -2606,12 +2606,12 @@ module Polars
|
|
2606
2606
|
# s.sign
|
2607
2607
|
# # =>
|
2608
2608
|
# # shape: (5,)
|
2609
|
-
# # Series: 'a' [
|
2609
|
+
# # Series: 'a' [f64]
|
2610
2610
|
# # [
|
2611
|
-
# # -1
|
2612
|
-
# # 0
|
2613
|
-
# # 0
|
2614
|
-
# # 1
|
2611
|
+
# # -1.0
|
2612
|
+
# # -0.0
|
2613
|
+
# # 0.0
|
2614
|
+
# # 1.0
|
2615
2615
|
# # null
|
2616
2616
|
# # ]
|
2617
2617
|
def sign
|
data/lib/polars/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: polars-df
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.14.0
|
5
5
|
platform: aarch64-linux
|
6
6
|
authors:
|
7
7
|
- Andrew Kane
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-09-
|
11
|
+
date: 2024-09-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bigdecimal
|