yvictor / polars_ta_extension Goto Github PK
View Code? Open in Web Editor NEWPolars extension for Ta-Lib: Support Ta-Lib functions in Polars expressions
License: MIT License
Polars extension for Ta-Lib: Support Ta-Lib functions in Polars expressions
License: MIT License
using this script (based on the example [here]:
df_data = (df_data
.with_columns(pl.col("LDPS_w").ta.wma(lookback_period).over(["ticker", "timeframe"]).alias("LDPS_w")))I get this error:
"polars.exceptions.ComputeError: the plugin failed with message: Could not compute indicator, err: TA_OUT_OF_RANGE_END_INDEX"
could you please help me understand what I should be doing?
apologies, my mistake, works fine
ta-lib-python is supposed to already natively support polars dataframes?
TA-Lib/ta-lib-python#471
Just out of interest: What is the difference to this library?
I am trying to install polars-talib==0.1.2
on my M1 Mac but am encountering an error indicating that there are no matching distributions found. This suggests that there might not be pre-built wheels available for ARM architecture.
pip install polars-talib==0.1.2
× No solution found when resolving dependencies: ╰─▶ Because polars-talib==0.1.2 is unusable because no wheels are available with a matching Python implementation and you require polars-talib==0.1.2, we can conclude that the requirements are unsatisfiable.
It would be highly beneficial for Mac users with ARM architecture if ARM-compatible wheels could be made available.
Really appreciate your help in making this library accessible on different architectures.
Just a warning I got. May dig into and make PR myself but just making note
So, in my project I did cargo add talib-sys
The build fails with this error:
Compiling talib-sys v0.1.0
error: could not find native static library `ta_lib`, perhaps an -L flag is missing?
error: could not compile `talib-sys` (lib) due to 1 previous error
I figured that the solution is to find out the location. In my case:
~/.cargo/registry/src/index.crates.io-6f17d22bba15001f/talib-sys-0.1.0
Then, i cloned this repo into /tmp
, built it myself and did:
cp /tmp/polars_ta_extension/talib-sys/dependencies ~/.cargo/registry/src/index.crates.io-6f17d22bba15001f/talib-sys-0.1.0
That allowed me to build properly.
Maybe the cargo version is not up to date?
Maybe a little bit related to #7, but pip show polars_talib shows there are no packages available on my linux arm system. Would be nice if you could add support to this
Environment:
Description:
Following the successful resolution of the previous issue regarding ARM-compatible wheels for M1 Macs, I have an additional request. It would be highly beneficial if support for the manylinux aarch64.whl could be added. This would greatly aid in testing the library in Docker environments and ensure compatibility across different systems.
Steps to Reproduce:
Expected Behavior:
The library should install successfully in Docker environments on ARM architecture with the addition of manylinux aarch64.whl support.
Additional Context:
Adding this support would greatly enhance the usability and testing capabilities of the library across diverse environments.
Thank you for considering this request and for your continued support!
Best regards,
@0xAndrii
Currently period accepts only i32 inputs. It should support f32 type. The original talib / talib python have no such restriction.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.