danfojs
danfojs copied to clipboard
Feature Request: Resampling
This is useful for time series data especially OHLC.
Use case: You have 1 min stock prices, and you want it aggregated to hourly prices before performing additional analysis.
See: https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.resample.html
@drixie Since this is a feature request, can you give us more details using the feature issue template: https://github.com/opensource9ja/danfojs/issues/new?assignees=&labels=&template=feature_request.md&title=
For Quant, danfo.js needs more APIs as pandas to manipulate price data, and interop with ta-lib for technical analysis.
pandas.DataFrame.resample is just one of them.
Comparing to Python in data science, JavaScript is better for real-time performance, visualization and building an App/WebPage for shipping, but danfo.js needs more APIs for data handling in many other fields.
We'd like to see that danfo.js supports Quantitative Finance.
@xareelee thanks for bringing this to our notice. can you help list some of the most important methods in pandas that are used in Quantitative analysis and add then to the features list
@steveoni For time series analysis, you'll need at least:
rolling/expanding/ewmshiftresample
It's not easy to list "the most important methods". It depends on what's the job.
- You'll need
ohlcto find the prices in a time frame. - You'll need good supports with date indexes, and group/resample them.
- You'll need some handy functions like
read_htmlandread_sqlto fetch data from web pages and databases;- math functions for calculation as numpy.
any plan for this ?
Would be really useful to have this in a JS library.
Stale issue message
I'm also really keen to see resample added.
I'm also really keen to see resample added.
Any news on this feature request? Or another work around for it?
Any updates ? Methods mentioned above are quite cruicial for time series analysis and it is bit pitty that these are not included in danfo .. (yet)