Comments (3)
This seems like pretty significant bug as it prevents pyfinance from being imported.
FreqGroup
and get_freq_code
seem to be used exclusively in the get_anlz_factor
function. As noted by garciapd, FreqGroup
has been moved to pandas._libs.tslibs.dtypes
. I have searched the source code of pandas 1.1.2 and get_freq_code
no longer exists with the functionality implemented in pyfinance. Attached is a script that defines a function get_freq_code
which has the proper functionality. I have tested it successfully on all the test cases in the get_anlz_factor
docstring. I did have to modify the expected exception in get_anlz_factor
(line 56).
Edit: A pull request has been created.
from pyfinance.
I did a little digging and it looks like pandas changed the API for FreqGroup between 1.0.x and 1.1.x. So it is a relatively recent change. There could probably be a PR based on something like
import pandas as pd
if pd._version.get_versions()['version'].startswith('0.') or pd._version.get_versions()['version'].startswith('1.0'):from pandas._libs.tslibs.frequencies import FreqGroup, get_freq_code
else:
from pandas._libs.tslibs.dtypes import FreqGroup
`
NOTE: I have not tested the above code, it is just speculation at this point.
from pyfinance.
Closed via ad9ab64.
from pyfinance.
Related Issues (18)
- Can't get sample to work HOT 1
- PandasRollingOLS reports ValueError HOT 2
- Bad ValueError raised in window-length check HOT 1
- it does not make sense when calling the property "rsq" and "rsq_adj"
- install error HOT 1
- semi_stdev function is wrong
- RollingOLS unnecesarily implements LRUCache, which causes memory issues with larger objects.
- Looking for new project maintainer
- Deprecation warning for file: returns.py line: 124
- KeyError for file: utils.py line: 555
- function "get_anlz_factor" return error
- Testing... some suggestions HOT 2
- Should add option of minimum periods of none when there is a specific window size HOT 1
- PandasRollingOLS does not actually work with use_const=False HOT 6
- Installation via pip doesn't work HOT 1
- min_window option in RollingOLS HOT 3
- random minor fix HOT 4
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 pyfinance.