Comments (2)
I update the logic with generator and remove the append
. However, it seems the real bottle neck lies in the extra call to ix
and dict get.
Anyway, here is the timeit
result before fix.
20 loops, best of 10: 850 ms per loop
Here is the result after the fix:
20 loops, best of 10: 19.3 ms per loop
The fix is available in r0.1.4.
from stockstats.
works great, thanks!
from stockstats.
Related Issues (20)
- Extract Kaufman's Adaptive Moving Average
- Add Elder-Ray Index
- Refactor: extract the logic for meta data
- Add Gaussian Fisher Transform Price Reversals indicator
- Add Relative Vigor Index
- Invalid number of return arguments after parsing column name: 'mdi' : stockstats 0.6.0 HOT 6
- Add Inertia Indicator
- Add Know Sure Thing (kst) support
- Add Pretty Good Oscillator Support
- Add Psychological Line (PSL) Support
- Add Support for PVO
- Support Quantitative Qualitative Estimation (QQE)
- Add z-score based statistics HOT 1
- import StockDataFrame出错 HOT 3
- import Error "TypeError: 'type' object is not subscriptable" HOT 8
- WMA and Hull MA HOT 2
- UserWarning: Invalid number of return arguments after parsing column name: 'Date' HOT 2
- Different results in DMI indicators (ex: adx_X_ema) between 0.5.X and 0.6.X.
- Number comparison HOT 3
- kdj bug: ZeroDivisionError: float division by zero , if high == low HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from stockstats.