polars-df 0.6.0 → 0.8.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +24 -0
- data/Cargo.lock +597 -599
- data/Cargo.toml +1 -0
- data/README.md +8 -7
- data/ext/polars/Cargo.toml +20 -10
- data/ext/polars/src/batched_csv.rs +27 -28
- data/ext/polars/src/conversion.rs +135 -106
- data/ext/polars/src/dataframe.rs +140 -131
- data/ext/polars/src/error.rs +0 -5
- data/ext/polars/src/expr/binary.rs +18 -6
- data/ext/polars/src/expr/categorical.rs +8 -1
- data/ext/polars/src/expr/datetime.rs +10 -12
- data/ext/polars/src/expr/general.rs +129 -286
- data/ext/polars/src/expr/list.rs +17 -9
- data/ext/polars/src/{expr.rs → expr/mod.rs} +4 -2
- data/ext/polars/src/expr/name.rs +44 -0
- data/ext/polars/src/expr/rolling.rs +201 -0
- data/ext/polars/src/expr/string.rs +94 -67
- data/ext/polars/src/file.rs +3 -3
- data/ext/polars/src/functions/aggregation.rs +35 -0
- data/ext/polars/src/functions/eager.rs +7 -31
- data/ext/polars/src/functions/io.rs +10 -10
- data/ext/polars/src/functions/lazy.rs +66 -41
- data/ext/polars/src/functions/meta.rs +30 -0
- data/ext/polars/src/functions/misc.rs +8 -0
- data/ext/polars/src/functions/mod.rs +5 -0
- data/ext/polars/src/functions/random.rs +6 -0
- data/ext/polars/src/functions/range.rs +41 -0
- data/ext/polars/src/functions/string_cache.rs +11 -0
- data/ext/polars/src/functions/whenthen.rs +7 -7
- data/ext/polars/src/lazyframe.rs +74 -60
- data/ext/polars/src/lib.rs +175 -91
- data/ext/polars/src/{apply → map}/dataframe.rs +29 -34
- data/ext/polars/src/{apply → map}/mod.rs +5 -5
- data/ext/polars/src/{apply → map}/series.rs +18 -22
- data/ext/polars/src/object.rs +0 -30
- data/ext/polars/src/on_startup.rs +32 -0
- data/ext/polars/src/rb_modules.rs +22 -7
- data/ext/polars/src/series/aggregation.rs +3 -0
- data/ext/polars/src/series/construction.rs +5 -5
- data/ext/polars/src/series/export.rs +4 -4
- data/ext/polars/src/{series.rs → series/mod.rs} +28 -45
- data/ext/polars/src/series/{set_at_idx.rs → scatter.rs} +38 -22
- data/ext/polars/src/sql.rs +46 -0
- data/ext/polars/src/utils.rs +1 -1
- data/lib/polars/config.rb +530 -0
- data/lib/polars/data_frame.rb +182 -145
- data/lib/polars/data_types.rb +4 -1
- data/lib/polars/date_time_expr.rb +23 -28
- data/lib/polars/date_time_name_space.rb +17 -37
- data/lib/polars/dynamic_group_by.rb +2 -2
- data/lib/polars/expr.rb +398 -110
- data/lib/polars/functions.rb +29 -37
- data/lib/polars/group_by.rb +38 -55
- data/lib/polars/io.rb +40 -5
- data/lib/polars/lazy_frame.rb +116 -89
- data/lib/polars/lazy_functions.rb +40 -68
- data/lib/polars/lazy_group_by.rb +7 -8
- data/lib/polars/list_expr.rb +12 -8
- data/lib/polars/list_name_space.rb +2 -2
- data/lib/polars/name_expr.rb +198 -0
- data/lib/polars/rolling_group_by.rb +2 -2
- data/lib/polars/series.rb +315 -43
- data/lib/polars/sql_context.rb +194 -0
- data/lib/polars/string_expr.rb +114 -60
- data/lib/polars/string_name_space.rb +19 -4
- data/lib/polars/struct_expr.rb +1 -1
- data/lib/polars/struct_name_space.rb +1 -1
- data/lib/polars/utils.rb +25 -13
- data/lib/polars/version.rb +1 -1
- data/lib/polars.rb +3 -0
- metadata +23 -11
- /data/ext/polars/src/{apply → map}/lazy.rs +0 -0
data/lib/polars.rb
CHANGED
@@ -19,6 +19,7 @@ require_relative "polars/binary_expr"
|
|
19
19
|
require_relative "polars/binary_name_space"
|
20
20
|
require_relative "polars/cat_expr"
|
21
21
|
require_relative "polars/cat_name_space"
|
22
|
+
require_relative "polars/config"
|
22
23
|
require_relative "polars/convert"
|
23
24
|
require_relative "polars/plot"
|
24
25
|
require_relative "polars/data_frame"
|
@@ -37,9 +38,11 @@ require_relative "polars/lazy_group_by"
|
|
37
38
|
require_relative "polars/list_expr"
|
38
39
|
require_relative "polars/list_name_space"
|
39
40
|
require_relative "polars/meta_expr"
|
41
|
+
require_relative "polars/name_expr"
|
40
42
|
require_relative "polars/rolling_group_by"
|
41
43
|
require_relative "polars/series"
|
42
44
|
require_relative "polars/slice"
|
45
|
+
require_relative "polars/sql_context"
|
43
46
|
require_relative "polars/string_expr"
|
44
47
|
require_relative "polars/string_name_space"
|
45
48
|
require_relative "polars/struct_expr"
|
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.8.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew Kane
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-01-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rb_sys
|
@@ -39,15 +39,10 @@ files:
|
|
39
39
|
- README.md
|
40
40
|
- ext/polars/Cargo.toml
|
41
41
|
- ext/polars/extconf.rb
|
42
|
-
- ext/polars/src/apply/dataframe.rs
|
43
|
-
- ext/polars/src/apply/lazy.rs
|
44
|
-
- ext/polars/src/apply/mod.rs
|
45
|
-
- ext/polars/src/apply/series.rs
|
46
42
|
- ext/polars/src/batched_csv.rs
|
47
43
|
- ext/polars/src/conversion.rs
|
48
44
|
- ext/polars/src/dataframe.rs
|
49
45
|
- ext/polars/src/error.rs
|
50
|
-
- ext/polars/src/expr.rs
|
51
46
|
- ext/polars/src/expr/array.rs
|
52
47
|
- ext/polars/src/expr/binary.rs
|
53
48
|
- ext/polars/src/expr/categorical.rs
|
@@ -55,28 +50,42 @@ files:
|
|
55
50
|
- ext/polars/src/expr/general.rs
|
56
51
|
- ext/polars/src/expr/list.rs
|
57
52
|
- ext/polars/src/expr/meta.rs
|
53
|
+
- ext/polars/src/expr/mod.rs
|
54
|
+
- ext/polars/src/expr/name.rs
|
55
|
+
- ext/polars/src/expr/rolling.rs
|
58
56
|
- ext/polars/src/expr/string.rs
|
59
57
|
- ext/polars/src/expr/struct.rs
|
60
58
|
- ext/polars/src/file.rs
|
59
|
+
- ext/polars/src/functions/aggregation.rs
|
61
60
|
- ext/polars/src/functions/eager.rs
|
62
61
|
- ext/polars/src/functions/io.rs
|
63
62
|
- ext/polars/src/functions/lazy.rs
|
64
63
|
- ext/polars/src/functions/meta.rs
|
64
|
+
- ext/polars/src/functions/misc.rs
|
65
65
|
- ext/polars/src/functions/mod.rs
|
66
|
+
- ext/polars/src/functions/random.rs
|
67
|
+
- ext/polars/src/functions/range.rs
|
68
|
+
- ext/polars/src/functions/string_cache.rs
|
66
69
|
- ext/polars/src/functions/whenthen.rs
|
67
70
|
- ext/polars/src/lazyframe.rs
|
68
71
|
- ext/polars/src/lazygroupby.rs
|
69
72
|
- ext/polars/src/lib.rs
|
73
|
+
- ext/polars/src/map/dataframe.rs
|
74
|
+
- ext/polars/src/map/lazy.rs
|
75
|
+
- ext/polars/src/map/mod.rs
|
76
|
+
- ext/polars/src/map/series.rs
|
70
77
|
- ext/polars/src/object.rs
|
78
|
+
- ext/polars/src/on_startup.rs
|
71
79
|
- ext/polars/src/prelude.rs
|
72
80
|
- ext/polars/src/rb_modules.rs
|
73
|
-
- ext/polars/src/series.rs
|
74
81
|
- ext/polars/src/series/aggregation.rs
|
75
82
|
- ext/polars/src/series/arithmetic.rs
|
76
83
|
- ext/polars/src/series/comparison.rs
|
77
84
|
- ext/polars/src/series/construction.rs
|
78
85
|
- ext/polars/src/series/export.rs
|
79
|
-
- ext/polars/src/series/
|
86
|
+
- ext/polars/src/series/mod.rs
|
87
|
+
- ext/polars/src/series/scatter.rs
|
88
|
+
- ext/polars/src/sql.rs
|
80
89
|
- ext/polars/src/utils.rs
|
81
90
|
- lib/polars-df.rb
|
82
91
|
- lib/polars.rb
|
@@ -87,6 +96,7 @@ files:
|
|
87
96
|
- lib/polars/binary_name_space.rb
|
88
97
|
- lib/polars/cat_expr.rb
|
89
98
|
- lib/polars/cat_name_space.rb
|
99
|
+
- lib/polars/config.rb
|
90
100
|
- lib/polars/convert.rb
|
91
101
|
- lib/polars/data_frame.rb
|
92
102
|
- lib/polars/data_types.rb
|
@@ -105,10 +115,12 @@ files:
|
|
105
115
|
- lib/polars/list_expr.rb
|
106
116
|
- lib/polars/list_name_space.rb
|
107
117
|
- lib/polars/meta_expr.rb
|
118
|
+
- lib/polars/name_expr.rb
|
108
119
|
- lib/polars/plot.rb
|
109
120
|
- lib/polars/rolling_group_by.rb
|
110
121
|
- lib/polars/series.rb
|
111
122
|
- lib/polars/slice.rb
|
123
|
+
- lib/polars/sql_context.rb
|
112
124
|
- lib/polars/string_expr.rb
|
113
125
|
- lib/polars/string_name_space.rb
|
114
126
|
- lib/polars/struct_expr.rb
|
@@ -129,14 +141,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
129
141
|
requirements:
|
130
142
|
- - ">="
|
131
143
|
- !ruby/object:Gem::Version
|
132
|
-
version: '3.
|
144
|
+
version: '3.1'
|
133
145
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
134
146
|
requirements:
|
135
147
|
- - ">="
|
136
148
|
- !ruby/object:Gem::Version
|
137
149
|
version: '0'
|
138
150
|
requirements: []
|
139
|
-
rubygems_version: 3.
|
151
|
+
rubygems_version: 3.5.3
|
140
152
|
signing_key:
|
141
153
|
specification_version: 4
|
142
154
|
summary: Blazingly fast DataFrames for Ruby
|
File without changes
|