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

BUG: Assorted DTA/TDA/PI bugfixes #24397

Merged
merged 11 commits into from
Dec 25, 2018
Merged

BUG: Assorted DTA/TDA/PI bugfixes #24397

merged 11 commits into from
Dec 25, 2018

Conversation

jbrockmendel
Copy link
Member

Fixes a problem with tz-aware DatetimeArray.round (ref #24038)
Fixes PI, PA, DTA failing to validate lengths when doing comparisons against length-1 instances (ref #23078)
Pins names to a handful of methods that currently don't have them (working on a separate branch that checks these systematically; these are the low-hanging fruit)

@codecov
Copy link

codecov bot commented Dec 22, 2018

Codecov Report

Merging #24397 into master will decrease coverage by 49.31%.
The diff coverage is 58.33%.

Impacted file tree graph

@@             Coverage Diff             @@
##           master   #24397       +/-   ##
===========================================
- Coverage    92.3%   42.99%   -49.32%     
===========================================
  Files         162      162               
  Lines       51875    51886       +11     
===========================================
- Hits        47883    22308    -25575     
- Misses       3992    29578    +25586
Flag Coverage Δ
#multiple ?
#single 42.99% <58.33%> (-0.01%) ⬇️
Impacted Files Coverage Δ
pandas/core/arrays/datetimelike.py 48.58% <0%> (-47.94%) ⬇️
pandas/core/arrays/period.py 37.95% <0%> (-60.55%) ⬇️
pandas/core/series.py 49.38% <100%> (-44.34%) ⬇️
pandas/core/ops.py 55.64% <100%> (-38.63%) ⬇️
pandas/core/indexes/base.py 56.17% <100%> (-40.1%) ⬇️
pandas/core/arrays/timedeltas.py 40.13% <50%> (-47.03%) ⬇️
pandas/core/arrays/datetimes.py 66.37% <50%> (-31.87%) ⬇️
pandas/io/formats/latex.py 0% <0%> (-100%) ⬇️
pandas/core/categorical.py 0% <0%> (-100%) ⬇️
pandas/io/sas/sas_constants.py 0% <0%> (-100%) ⬇️
... and 127 more

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 3e0358d...dc37dfb. Read the comment docs.

@codecov
Copy link

codecov bot commented Dec 22, 2018

Codecov Report

Merging #24397 into master will decrease coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #24397      +/-   ##
==========================================
- Coverage    92.3%    92.3%   -0.01%     
==========================================
  Files         163      163              
  Lines       51946    51958      +12     
==========================================
+ Hits        47949    47959      +10     
- Misses       3997     3999       +2
Flag Coverage Δ
#multiple 90.71% <100%> (-0.01%) ⬇️
#single 43% <64.28%> (ø) ⬆️
Impacted Files Coverage Δ
pandas/core/arrays/datetimelike.py 96.14% <100%> (-0.22%) ⬇️
pandas/core/series.py 93.72% <100%> (ø) ⬆️
pandas/core/arrays/period.py 98.48% <100%> (ø) ⬆️
pandas/core/arrays/timedeltas.py 86.91% <100%> (+0.05%) ⬆️
pandas/core/ops.py 94.28% <100%> (+0.02%) ⬆️
pandas/core/arrays/datetimes.py 97.6% <100%> (-0.18%) ⬇️
pandas/core/indexes/base.py 96.27% <100%> (ø) ⬆️

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 6b31abd...fd2b180. Read the comment docs.

@gfyoung gfyoung added Bug Datetime Datetime data dtype labels Dec 23, 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.

minor code comments. can you add whatsnews as needed.

pandas/core/arrays/datetimes.py Outdated Show resolved Hide resolved
pandas/core/arrays/timedeltas.py Outdated Show resolved Hide resolved
@jreback
Copy link
Contributor

jreback commented Dec 24, 2018

is this orthogonal to #23078, should close that one?

@jbrockmendel
Copy link
Member Author

is this orthogonal to #23078, should close that one?

This closes #23078, should be reflected in the OP.

@jbrockmendel
Copy link
Member Author

i think comments have been addressed

pandas/core/ops.py Show resolved Hide resolved
@jreback jreback merged commit 511ae30 into pandas-dev:master Dec 25, 2018
@jreback
Copy link
Contributor

jreback commented Dec 25, 2018

thanks. pls followup on the ops name tests at some point.

@jbrockmendel jbrockmendel deleted the mugs branch December 26, 2018 00:16
Pingviinituutti pushed a commit to Pingviinituutti/pandas that referenced this pull request Feb 28, 2019
Pingviinituutti pushed a commit to Pingviinituutti/pandas that referenced this pull request Feb 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Datetime Datetime data dtype
Projects
None yet
Development

Successfully merging this pull request may close these issues.

comparison between two PeriodIndexes doesn't validate length
3 participants