-
Notifications
You must be signed in to change notification settings - Fork 76
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Serialized values all 0 #22
Comments
results all zero for test example https://github.com/greedo/python-xbrl/tree/master/tests/goog-20140630.xml |
@nhippenmeyer I am having problems reproducing this issue, could you post the code you are using. Thanks! |
(py1) C:\pyxbrl\python-xbrl-master\xbrl>ipython gaap.py |
@nhippenmeyer @pythonliuj again could you post the exact code you are using when parsing. Thanks! |
xbrl_parser = XBRLParser()
xbrl = xbrl_parser.parse('aapl-20150627.xml')
gaap_obj = xbrl_parser.parseGAAP(xbrl, doc_date='20150627', doc_type='10-Q', context='current')
result = serializer.dump(gaap_obj) Gives me a dictionary with all 0s The file is at: http://www.sec.gov/Archives/edgar/data/320193/000119312515259935/aapl-20150627.xml |
from xbrl import XBRLParser, GAAP, GAAPSerializer
xbrl_parser = XBRLParser()
xbrl = xbrl_parser.parse('aapl-20150627.xml')
gaap_obj = xbrl_parser.parseGAAP(xbrl, doc_date='20150627', doc_type='10-Q', context='current')
serializer = GAAPSerializer()
result = serializer.dump(gaap_obj)
print result This is the code I am using @NoMoSnacks and I am getting data |
@greedo I just ran your code above (omitting the doc_type variable, which caused an error) and am getting mostly zeros as well. Perhaps the GAAP parser needs updating? |
Any progress on this issue? Also running into this problem. |
Actually - I think my doc is not an XML file - I'm v new to this. I'm also running into this problem with a 10-Q file. Is doc_type no longer needed? Code
Result
|
I've run through the setup and tried parsing this google 10-K form:
http://www.sec.gov/Archives/edgar/data/1288776/000128877614000020/goog-20131231.xml
However when I serialized the data, all values are 0, as seen below. Any idea what's happening here?
The text was updated successfully, but these errors were encountered: