-
-
Notifications
You must be signed in to change notification settings - Fork 18.6k
BUG: PeriodIndex constructor doesn't work with Series objects #7712
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
Conversation
@jreback i think this should go in 0.14.1, since this is a bug found this updating the examples in wes's book |
is this #7701 ? (which @jorisvandenbossche beat you to it!) |
releas note & can you indicate the issue in the test? squash and looks ok, ping when passes |
@cpcloud side issue: https://travis-ci.org/pydata/pandas/jobs/29543656 prob just need to add that error code tot he network decorator? |
yeah not sure, all urlerrors should be caught because they're a subclass of one of hte classes that network checks ... i'll see if i can't find out what the issue is |
pushed this: 66e1763 rebase and give it a whilrl |
@cpcloud can you update? |
updated ... waiting on travis |
@@ -1281,6 +1281,15 @@ def test_constructor_nat(self): | |||
self.assertRaises( | |||
ValueError, period_range, start='2011-01-01', end='NaT', freq='M') | |||
|
|||
def test_constructor_year_and_quarter(self): | |||
year = pd.Series([2001, 2002, 2003]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you add the issue number here?
minor comment, pls squash and merge (travis already passed, so good 2 go) |
alright i'll add some docs and then merge it |
oh....doesn't really need any docs, just the issue number on the test (well maybe the doc-string might need to be verified) |
oh ok ... i've already added a bug fix in v0.14.1.txt |
a bug fix doc note i should say |
BUG: PeriodIndex constructor doesn't work with Series objects
@cpcloud as an aftermath, can you also update the docstring of PeriodIndex? (it actually says only 'array' and not series) |
sure :) aftermath 🔥 |
closes #7701