Skip to content

Remove unused cimports, fix #22067 #22087

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

Merged
merged 15 commits into from
Jul 30, 2018
Merged

Conversation

jbrockmendel
Copy link
Member

@jbrockmendel jbrockmendel commented Jul 27, 2018

cdef int64_t _ordinal_from_fields(year, month, quarter, day,
hour, minute, second, freq):
cdef int64_t _ordinal_from_fields(int year, int month, quarter, int day,
int hour, int minute, int second, freq):
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is what fixed 22067. year and month were getting an Int64Index.

@jreback jreback added Bug Period Period data type Clean labels Jul 28, 2018
Copy link
Contributor

@jreback jreback left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you add a test for #22067 ?

@@ -1920,8 +1920,8 @@ class Period(_Period):
return cls._from_ordinal(ordinal, freq)


cdef int64_t _ordinal_from_fields(year, month, quarter, day,
hour, minute, second, freq):
cdef int64_t _ordinal_from_fields(int year, int month, quarter, int day,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

does quarter not need a type?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It can be None.

@jreback
Copy link
Contributor

jreback commented Jul 28, 2018

minor comments and pls rebase

@pep8speaks
Copy link

pep8speaks commented Jul 28, 2018

Hello @jbrockmendel! Thanks for updating the PR.

Cheers ! There are no PEP8 issues in this Pull Request. 🍻

Comment last updated on July 29, 2018 at 20:57 Hours UTC

@codecov
Copy link

codecov bot commented Jul 28, 2018

Codecov Report

Merging #22087 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master   #22087   +/-   ##
=======================================
  Coverage   92.07%   92.07%           
=======================================
  Files         170      170           
  Lines       50690    50690           
=======================================
  Hits        46672    46672           
  Misses       4018     4018
Flag Coverage Δ
#multiple 90.48% <ø> (ø) ⬆️
#single 42.31% <ø> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d30c4a0...a1bff36. Read the comment docs.

Copy link
Contributor

@jreback jreback left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

rebase & comments, lgtm. ping on green.

# GH#22067, check we don't get warnings about silently ignored errors
dti = date_range('2017-01-01', '2018-01-01', freq='B')

c = StringIO()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use tm.capture_stderr

@jreback jreback added this to the 0.24.0 milestone Jul 29, 2018
@jbrockmendel
Copy link
Member Author

Ping

@jreback jreback merged commit 26b3e7d into pandas-dev:master Jul 30, 2018
@jreback
Copy link
Contributor

jreback commented Jul 30, 2018

thanks!

dberenbaum pushed a commit to dberenbaum/pandas that referenced this pull request Aug 3, 2018
@jbrockmendel jbrockmendel deleted the warns2 branch August 8, 2018 15:53
Sup3rGeo pushed a commit to Sup3rGeo/pandas that referenced this pull request Oct 1, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Clean Period Period data type
Projects
None yet
Development

Successfully merging this pull request may close these issues.

TypeError in pandas._libs.tslibs.period._ordinal_from_fields
3 participants