polars-ta 0.4.6__tar.gz → 0.4.7__tar.gz

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.
Files changed (75) hide show
  1. {polars_ta-0.4.6 → polars_ta-0.4.7}/PKG-INFO +3 -2
  2. polars_ta-0.4.7/polars_ta/_version.py +1 -0
  3. {polars_ta-0.4.6 → polars_ta-0.4.7}/polars_ta/wq/arithmetic.py +16 -13
  4. {polars_ta-0.4.6 → polars_ta-0.4.7}/polars_ta.egg-info/PKG-INFO +3 -2
  5. polars_ta-0.4.6/polars_ta/_version.py +0 -1
  6. {polars_ta-0.4.6 → polars_ta-0.4.7}/LICENSE +0 -0
  7. {polars_ta-0.4.6 → polars_ta-0.4.7}/README.md +0 -0
  8. {polars_ta-0.4.6 → polars_ta-0.4.7}/polars_ta/__init__.py +0 -0
  9. {polars_ta-0.4.6 → polars_ta-0.4.7}/polars_ta/candles/__init__.py +0 -0
  10. {polars_ta-0.4.6 → polars_ta-0.4.7}/polars_ta/candles/cdl1.py +0 -0
  11. {polars_ta-0.4.6 → polars_ta-0.4.7}/polars_ta/candles/cdl1_limit.py +0 -0
  12. {polars_ta-0.4.6 → polars_ta-0.4.7}/polars_ta/candles/cdl2.py +0 -0
  13. {polars_ta-0.4.6 → polars_ta-0.4.7}/polars_ta/noise.py +0 -0
  14. {polars_ta-0.4.6 → polars_ta-0.4.7}/polars_ta/performance/__init__.py +0 -0
  15. {polars_ta-0.4.6 → polars_ta-0.4.7}/polars_ta/performance/drawdown.py +0 -0
  16. {polars_ta-0.4.6 → polars_ta-0.4.7}/polars_ta/performance/returns.py +0 -0
  17. {polars_ta-0.4.6 → polars_ta-0.4.7}/polars_ta/prefix/__init__.py +0 -0
  18. {polars_ta-0.4.6 → polars_ta-0.4.7}/polars_ta/prefix/cdl.py +0 -0
  19. {polars_ta-0.4.6 → polars_ta-0.4.7}/polars_ta/prefix/reports.py +0 -0
  20. {polars_ta-0.4.6 → polars_ta-0.4.7}/polars_ta/prefix/ta.py +0 -0
  21. {polars_ta-0.4.6 → polars_ta-0.4.7}/polars_ta/prefix/talib.py +0 -0
  22. {polars_ta-0.4.6 → polars_ta-0.4.7}/polars_ta/prefix/tdx.py +0 -0
  23. {polars_ta-0.4.6 → polars_ta-0.4.7}/polars_ta/prefix/wq.py +0 -0
  24. {polars_ta-0.4.6 → polars_ta-0.4.7}/polars_ta/reports/__init__.py +0 -0
  25. {polars_ta-0.4.6 → polars_ta-0.4.7}/polars_ta/reports/cicc.py +0 -0
  26. {polars_ta-0.4.6 → polars_ta-0.4.7}/polars_ta/ta/__init__.py +0 -0
  27. {polars_ta-0.4.6 → polars_ta-0.4.7}/polars_ta/ta/momentum.py +0 -0
  28. {polars_ta-0.4.6 → polars_ta-0.4.7}/polars_ta/ta/operators.py +0 -0
  29. {polars_ta-0.4.6 → polars_ta-0.4.7}/polars_ta/ta/overlap.py +0 -0
  30. {polars_ta-0.4.6 → polars_ta-0.4.7}/polars_ta/ta/price.py +0 -0
  31. {polars_ta-0.4.6 → polars_ta-0.4.7}/polars_ta/ta/statistic.py +0 -0
  32. {polars_ta-0.4.6 → polars_ta-0.4.7}/polars_ta/ta/transform.py +0 -0
  33. {polars_ta-0.4.6 → polars_ta-0.4.7}/polars_ta/ta/volatility.py +0 -0
  34. {polars_ta-0.4.6 → polars_ta-0.4.7}/polars_ta/ta/volume.py +0 -0
  35. {polars_ta-0.4.6 → polars_ta-0.4.7}/polars_ta/talib/__init__.py +0 -0
  36. {polars_ta-0.4.6 → polars_ta-0.4.7}/polars_ta/tdx/__init__.py +0 -0
  37. {polars_ta-0.4.6 → polars_ta-0.4.7}/polars_ta/tdx/_chip.py +0 -0
  38. {polars_ta-0.4.6 → polars_ta-0.4.7}/polars_ta/tdx/_nb.py +0 -0
  39. {polars_ta-0.4.6 → polars_ta-0.4.7}/polars_ta/tdx/_slow.py +0 -0
  40. {polars_ta-0.4.6 → polars_ta-0.4.7}/polars_ta/tdx/arithmetic.py +0 -0
  41. {polars_ta-0.4.6 → polars_ta-0.4.7}/polars_ta/tdx/choice.py +0 -0
  42. {polars_ta-0.4.6 → polars_ta-0.4.7}/polars_ta/tdx/energy.py +0 -0
  43. {polars_ta-0.4.6 → polars_ta-0.4.7}/polars_ta/tdx/logical.py +0 -0
  44. {polars_ta-0.4.6 → polars_ta-0.4.7}/polars_ta/tdx/moving_average.py +0 -0
  45. {polars_ta-0.4.6 → polars_ta-0.4.7}/polars_ta/tdx/over_bought_over_sold.py +0 -0
  46. {polars_ta-0.4.6 → polars_ta-0.4.7}/polars_ta/tdx/pattern.py +0 -0
  47. {polars_ta-0.4.6 → polars_ta-0.4.7}/polars_ta/tdx/pattern_feature.py +0 -0
  48. {polars_ta-0.4.6 → polars_ta-0.4.7}/polars_ta/tdx/pressure_support.py +0 -0
  49. {polars_ta-0.4.6 → polars_ta-0.4.7}/polars_ta/tdx/reference.py +0 -0
  50. {polars_ta-0.4.6 → polars_ta-0.4.7}/polars_ta/tdx/statistic.py +0 -0
  51. {polars_ta-0.4.6 → polars_ta-0.4.7}/polars_ta/tdx/trend.py +0 -0
  52. {polars_ta-0.4.6 → polars_ta-0.4.7}/polars_ta/tdx/trend_feature.py +0 -0
  53. {polars_ta-0.4.6 → polars_ta-0.4.7}/polars_ta/tdx/volume.py +0 -0
  54. {polars_ta-0.4.6 → polars_ta-0.4.7}/polars_ta/utils/__init__.py +0 -0
  55. {polars_ta-0.4.6 → polars_ta-0.4.7}/polars_ta/utils/helper.py +0 -0
  56. {polars_ta-0.4.6 → polars_ta-0.4.7}/polars_ta/utils/numba_.py +0 -0
  57. {polars_ta-0.4.6 → polars_ta-0.4.7}/polars_ta/utils/pandas_.py +0 -0
  58. {polars_ta-0.4.6 → polars_ta-0.4.7}/polars_ta/utils/pit.py +0 -0
  59. {polars_ta-0.4.6 → polars_ta-0.4.7}/polars_ta/utils/wrapper.py +0 -0
  60. {polars_ta-0.4.6 → polars_ta-0.4.7}/polars_ta/wq/__init__.py +0 -0
  61. {polars_ta-0.4.6 → polars_ta-0.4.7}/polars_ta/wq/_nb.py +0 -0
  62. {polars_ta-0.4.6 → polars_ta-0.4.7}/polars_ta/wq/_slow.py +0 -0
  63. {polars_ta-0.4.6 → polars_ta-0.4.7}/polars_ta/wq/cross_sectional.py +0 -0
  64. {polars_ta-0.4.6 → polars_ta-0.4.7}/polars_ta/wq/logical.py +0 -0
  65. {polars_ta-0.4.6 → polars_ta-0.4.7}/polars_ta/wq/preprocess.py +0 -0
  66. {polars_ta-0.4.6 → polars_ta-0.4.7}/polars_ta/wq/time_series.py +0 -0
  67. {polars_ta-0.4.6 → polars_ta-0.4.7}/polars_ta/wq/transformational.py +0 -0
  68. {polars_ta-0.4.6 → polars_ta-0.4.7}/polars_ta/wq/vector.py +0 -0
  69. {polars_ta-0.4.6 → polars_ta-0.4.7}/polars_ta.egg-info/SOURCES.txt +0 -0
  70. {polars_ta-0.4.6 → polars_ta-0.4.7}/polars_ta.egg-info/dependency_links.txt +0 -0
  71. {polars_ta-0.4.6 → polars_ta-0.4.7}/polars_ta.egg-info/requires.txt +0 -0
  72. {polars_ta-0.4.6 → polars_ta-0.4.7}/polars_ta.egg-info/top_level.txt +0 -0
  73. {polars_ta-0.4.6 → polars_ta-0.4.7}/pyproject.toml +0 -0
  74. {polars_ta-0.4.6 → polars_ta-0.4.7}/setup.cfg +0 -0
  75. {polars_ta-0.4.6 → polars_ta-0.4.7}/setup.py +0 -0
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.2
1
+ Metadata-Version: 2.4
2
2
  Name: polars_ta
3
- Version: 0.4.6
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
 
@@ -0,0 +1 @@
1
+ __version__ = "0.4.7"
@@ -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'), pl.col('b')),
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, 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.2
1
+ Metadata-Version: 2.4
2
2
  Name: polars_ta
3
- Version: 0.4.6
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 +0,0 @@
1
- __version__ = "0.4.6"
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes