polars-ta 0.4.6__py3-none-any.whl → 0.4.7__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- polars_ta/_version.py +1 -1
- polars_ta/wq/arithmetic.py +16 -13
- {polars_ta-0.4.6.dist-info → polars_ta-0.4.7.dist-info}/METADATA +3 -2
- {polars_ta-0.4.6.dist-info → polars_ta-0.4.7.dist-info}/RECORD +7 -7
- {polars_ta-0.4.6.dist-info → polars_ta-0.4.7.dist-info}/WHEEL +1 -1
- {polars_ta-0.4.6.dist-info → polars_ta-0.4.7.dist-info/licenses}/LICENSE +0 -0
- {polars_ta-0.4.6.dist-info → polars_ta-0.4.7.dist-info}/top_level.txt +0 -0
polars_ta/_version.py
CHANGED
@@ -1 +1 @@
|
|
1
|
-
__version__ = "0.4.
|
1
|
+
__version__ = "0.4.7"
|
polars_ta/wq/arithmetic.py
CHANGED
@@ -656,21 +656,22 @@ def signed_power(x: Expr, y: Expr) -> Expr:
|
|
656
656
|
}).with_columns(
|
657
657
|
out1=signed_power(pl.col('a'), 0),
|
658
658
|
out2=signed_power(pl.col('a'), 1),
|
659
|
-
out3=signed_power(pl.col('a'),
|
659
|
+
out3=signed_power(pl.col('a'), 2),
|
660
|
+
out4=signed_power(pl.col('a'), pl.col('b')),
|
660
661
|
)
|
661
662
|
|
662
|
-
shape: (5,
|
663
|
-
|
664
|
-
│ a ┆ b ┆ out1 ┆ out2 ┆ out3 │
|
665
|
-
│ --- ┆ --- ┆ --- ┆ --- ┆ --- │
|
666
|
-
│ i64 ┆ i64 ┆ i64 ┆ i64 ┆ f64 │
|
667
|
-
|
668
|
-
│ null ┆ null ┆ null ┆ null ┆ null │
|
669
|
-
│ -1 ┆ -1 ┆ -1 ┆ -1 ┆ -1.0 │
|
670
|
-
│ 0 ┆ 0 ┆ 0 ┆ 0 ┆ 0.0 │
|
671
|
-
│ 1 ┆ 1 ┆ 1 ┆ 1 ┆ 1.0 │
|
672
|
-
│ 2 ┆ 2 ┆ 1 ┆ 2 ┆ 4.0 │
|
673
|
-
|
663
|
+
shape: (5, 6)
|
664
|
+
┌──────┬──────┬──────┬──────┬──────┬──────┐
|
665
|
+
│ a ┆ b ┆ out1 ┆ out2 ┆ out3 ┆ out4 │
|
666
|
+
│ --- ┆ --- ┆ --- ┆ --- ┆ --- ┆ --- │
|
667
|
+
│ i64 ┆ i64 ┆ i64 ┆ i64 ┆ i64 ┆ f64 │
|
668
|
+
╞══════╪══════╪══════╪══════╪══════╪══════╡
|
669
|
+
│ null ┆ null ┆ null ┆ null ┆ null ┆ null │
|
670
|
+
│ -1 ┆ -1 ┆ -1 ┆ -1 ┆ -1 ┆ -1.0 │
|
671
|
+
│ 0 ┆ 0 ┆ 0 ┆ 0 ┆ 0 ┆ 0.0 │
|
672
|
+
│ 1 ┆ 1 ┆ 1 ┆ 1 ┆ 1 ┆ 1.0 │
|
673
|
+
│ 2 ┆ 2 ┆ 1 ┆ 2 ┆ 4 ┆ 4.0 │
|
674
|
+
└──────┴──────┴──────┴──────┴──────┴──────┘
|
674
675
|
```
|
675
676
|
|
676
677
|
References
|
@@ -683,6 +684,8 @@ def signed_power(x: Expr, y: Expr) -> Expr:
|
|
683
684
|
return x.abs() * x.sign()
|
684
685
|
elif y == 0:
|
685
686
|
return x.sign()
|
687
|
+
else:
|
688
|
+
return x.abs().pow(y) * x.sign()
|
686
689
|
|
687
690
|
return x.abs().pow(y.cast(Float64)) * x.sign()
|
688
691
|
|
@@ -1,6 +1,6 @@
|
|
1
|
-
Metadata-Version: 2.
|
1
|
+
Metadata-Version: 2.4
|
2
2
|
Name: polars_ta
|
3
|
-
Version: 0.4.
|
3
|
+
Version: 0.4.7
|
4
4
|
Summary: polars expressions
|
5
5
|
Author-email: wukan <wu-kan@163.com>
|
6
6
|
License: MIT License
|
@@ -38,6 +38,7 @@ Requires-Dist: numba
|
|
38
38
|
Requires-Dist: pandas
|
39
39
|
Provides-Extra: talib
|
40
40
|
Requires-Dist: TA-Lib; extra == "talib"
|
41
|
+
Dynamic: license-file
|
41
42
|
|
42
43
|
# polars_ta
|
43
44
|
|
@@ -1,5 +1,5 @@
|
|
1
1
|
polars_ta/__init__.py,sha256=UfRKvBoFTFhGlL9fNsarlPs0_FV6kxM1vfWvJD5YBe8,53
|
2
|
-
polars_ta/_version.py,sha256=
|
2
|
+
polars_ta/_version.py,sha256=MHGyAIWXVeovtteWUUSzLq9UGWJLLooUZCXB9KGpNK8,22
|
3
3
|
polars_ta/noise.py,sha256=LJHubBqnWlU3Bz84z07N1JB-b-hAMW2rgBF1BT4m0FE,1471
|
4
4
|
polars_ta/candles/__init__.py,sha256=AW68IuFC0gD4_OyjwLP3p22WSzSIYqlSrsS9fW_15xw,141
|
5
5
|
polars_ta/candles/cdl1.py,sha256=RnRu1QzpqEt5y0-1hlfZRUvza1no-Gj4x_dx2QWxr5A,3130
|
@@ -54,15 +54,15 @@ polars_ta/utils/wrapper.py,sha256=jbR-ZQdzBf5iWvtnJ1HsN9HdepmDbU7fUj4w8Bt2BkU,34
|
|
54
54
|
polars_ta/wq/__init__.py,sha256=C3YYJc997XCUI7H_afGT_mj2m4UdHMcql4sboCVvrXU,327
|
55
55
|
polars_ta/wq/_nb.py,sha256=cYEUlEvLQJCjt5_o_1qnWrJ2eWMamwUedOsLwYTq_Oo,9470
|
56
56
|
polars_ta/wq/_slow.py,sha256=MfWg9FYX8NGNLWN4ezI_awf3pPTqhSq_zo0LOS4nCzw,937
|
57
|
-
polars_ta/wq/arithmetic.py,sha256=
|
57
|
+
polars_ta/wq/arithmetic.py,sha256=rVFWhHpmgsMRfPj08VaXCrKapIZ3TP7-1Nc8wBi2BpE,23682
|
58
58
|
polars_ta/wq/cross_sectional.py,sha256=mHLwuXu9m4ladb6cUJVnH4OofliBSkpzmIZu6TtBoe4,13697
|
59
59
|
polars_ta/wq/logical.py,sha256=5lttGwQi9oHml7soqmxEwgIVVLpeWO7JSXmQ3-TUqlU,2261
|
60
60
|
polars_ta/wq/preprocess.py,sha256=xbESoAtsbQgXJMhnLzg4r5o2H9uwPyHfySg5skk_DUg,4188
|
61
61
|
polars_ta/wq/time_series.py,sha256=L74rqAUyZS6rI3S3R9aIwrKosGFFHWxP3BESNJ67ak8,27093
|
62
62
|
polars_ta/wq/transformational.py,sha256=ktluqo-lcxWysFL3huNypId0EFR1wn1PmyBGO180UQo,7194
|
63
63
|
polars_ta/wq/vector.py,sha256=Qs-mHC2YsiWXoyMuXZZPzd5W5w_HL1ZgDCj9wRAnqmQ,1902
|
64
|
-
polars_ta-0.4.
|
65
|
-
polars_ta-0.4.
|
66
|
-
polars_ta-0.4.
|
67
|
-
polars_ta-0.4.
|
68
|
-
polars_ta-0.4.
|
64
|
+
polars_ta-0.4.7.dist-info/licenses/LICENSE,sha256=nREFtfwxWCCYD-ZA1jMzhhxMyTz-wGWFlnkpgg0DCtQ,1062
|
65
|
+
polars_ta-0.4.7.dist-info/METADATA,sha256=LCshC1cLprfJT5I_I2AFsyKOjElDGyXEzHCnZIKE-GA,10733
|
66
|
+
polars_ta-0.4.7.dist-info/WHEEL,sha256=1tXe9gY0PYatrMPMDd6jXqjfpz_B-Wqm32CPfRC58XU,91
|
67
|
+
polars_ta-0.4.7.dist-info/top_level.txt,sha256=eat2IhP79-dIGA4DAFOz1o-95--UDqfjeIgmU9TBsDQ,10
|
68
|
+
polars_ta-0.4.7.dist-info/RECORD,,
|
File without changes
|
File without changes
|