Skip to content
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

Get series with realtime #11

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

elmotec
Copy link
Contributor

@elmotec elmotec commented Sep 27, 2015

Hey @mortada, this is a PR to address the issue I mentioned in #9. That's only the part that handle realtime_start and realtime_end as first class citizens in get_series().

I should have get_dataframe() (to query multiple series in one call at specific times) ready sometimes in October.

@mortada
Copy link
Owner

mortada commented Sep 29, 2015

please rebase

@elmotec
Copy link
Contributor Author

elmotec commented Oct 4, 2015

Rebased.

Removed usage of sys.stderr in mock exception which caused the stream to
be closed. This in turn failed the next test.  Simplified test_search to
avoid the zip and the loop.
Arguments realtime_start and realtime_end in get_series() now cause a
pandas.DataFrame to be returned with pandas.MultiIndex for realtime
data.  Added simple test for the new feature and documentation.

Added __init__.py in fredapi.tests so it's correctly interpreted as
a package. Now we could revert to python setup.py test in .travis.yml.

Fixed test_invalid_kwarg_in_get_series() as we sometimes get a
TypeError and sometimes a ValueError. Seems that pandas passes through
whatever exception it gets, might be a good reason for this so we
follow the same policy.

Simplified comparison of dataframe output in tests.
9999-12-31 cannot be converted to pandas.Timestamp because it's too big.
Reason it's prefereable to use pandas.Timestamp than datetime.datetime
is that the former can be used as an index whereas the second cannot.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants