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

Mix EA into DTA/TDA; part of 24024 #24502

Merged
merged 4 commits into from
Dec 30, 2018
Merged

Conversation

jbrockmendel
Copy link
Member

This is nearly all of the remaining DTA/TDA changes in #24024. The things that are not included:

  • constructor changes
  • fillna, since in local testing it alters DTA inplace, so not ready

value_counts from 24024 has small change to make sure the tz-aware case is correct regardless of how the constructor changes in 24024 get resolved. A test is added specifically to check for this.

The changes implied by mixing ExtensionArray into DatetimeLikeArrayMixin are not tested yet, won't be until the extension tests part of #24024 is merged. I don't see any way around that except for doing 24024 all at once.

@jreback jreback added Refactor Internal refactoring of code ExtensionArray Extending pandas with custom dtypes or arrays. labels Dec 30, 2018
@jreback jreback added this to the 0.24.0 milestone Dec 30, 2018
@jreback
Copy link
Contributor

jreback commented Dec 30, 2018

lgtm. ping on green.

@codecov
Copy link

codecov bot commented Dec 30, 2018

Codecov Report

Merging #24502 into master will decrease coverage by 49.26%.
The diff coverage is 30.43%.

Impacted file tree graph

@@             Coverage Diff             @@
##           master   #24502       +/-   ##
===========================================
- Coverage   92.31%   43.05%   -49.27%     
===========================================
  Files         166      166               
  Lines       52391    52400        +9     
===========================================
- Hits        48363    22559    -25804     
- Misses       4028    29841    +25813
Flag Coverage Δ
#multiple ?
#single 43.05% <30.43%> (ø) ⬆️
Impacted Files Coverage Δ
pandas/core/arrays/period.py 41.54% <100%> (-56.85%) ⬇️
pandas/core/arrays/timedeltas.py 40% <16.66%> (-47.69%) ⬇️
pandas/core/arrays/datetimelike.py 43.71% <31.25%> (-51.77%) ⬇️
pandas/io/formats/latex.py 0% <0%> (-100%) ⬇️
pandas/core/categorical.py 0% <0%> (-100%) ⬇️
pandas/io/sas/sas_constants.py 0% <0%> (-100%) ⬇️
pandas/tseries/plotting.py 0% <0%> (-100%) ⬇️
pandas/tseries/converter.py 0% <0%> (-100%) ⬇️
pandas/io/formats/html.py 0% <0%> (-98.65%) ⬇️
pandas/core/groupby/categorical.py 0% <0%> (-95.46%) ⬇️
... 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 9267e27...5af756b. Read the comment docs.

@codecov
Copy link

codecov bot commented Dec 30, 2018

Codecov Report

Merging #24502 into master will increase coverage by <.01%.
The diff coverage is 83.33%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #24502      +/-   ##
==========================================
+ Coverage   92.31%   92.31%   +<.01%     
==========================================
  Files         166      166              
  Lines       52391    52400       +9     
==========================================
+ Hits        48363    48372       +9     
  Misses       4028     4028
Flag Coverage Δ
#multiple 90.73% <83.33%> (ø) ⬆️
#single 43.04% <33.33%> (-0.01%) ⬇️
Impacted Files Coverage Δ
pandas/core/arrays/period.py 98.35% <100%> (-0.04%) ⬇️
pandas/core/arrays/timedeltas.py 87.42% <66.66%> (-0.26%) ⬇️
pandas/core/arrays/datetimelike.py 95.75% <87.5%> (+0.27%) ⬆️
pandas/core/arrays/datetimes.py 97.91% <0%> (+0.17%) ⬆️

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 9267e27...5af756b. Read the comment docs.

@jbrockmendel
Copy link
Member Author

ping

@jreback jreback merged commit 0324465 into pandas-dev:master Dec 30, 2018
@jreback
Copy link
Contributor

jreback commented Dec 30, 2018

thanks

thoo added a commit to thoo/pandas that referenced this pull request Dec 30, 2018
…strings

* upstream/master:
  TST: Skip db tests unless explicitly specified in -m pattern (pandas-dev#24492)
  Mix EA into DTA/TDA; part of 24024 (pandas-dev#24502)
  DOC: Fix building of a single API document (pandas-dev#24506)
  DOC: Fixing broken references in the docs (pandas-dev#24497)
  DOC: Splitting api.rst in several files (pandas-dev#24462)
  Fix misdescription in escapechar (pandas-dev#24490)
  Floor and ceil methods during pandas.eval which are provided by numexpr (pandas-dev#24355)
  BUG: Pandas any() returning false with true values present (GH pandas-dev#23070) (pandas-dev#24434)
  Misc separable pieces of pandas-dev#24024 (pandas-dev#24488)
  use capsys.readouterr() as named tuple (pandas-dev#24489)
  REF/TST: replace capture_stderr with pytest capsys fixture (pandas-dev#24496)
  TST- Fixing issue with test_parquet test unexpectedly passing (pandas-dev#24480)
  DOC: Doc build for a single doc made much faster, and clean up (pandas-dev#24428)
  BUG: Fix+test timezone-preservation in DTA.repeat (pandas-dev#24483)
  Implement reductions from pandas-dev#24024 (pandas-dev#24484)
thoo added a commit to thoo/pandas that referenced this pull request Dec 30, 2018
* upstream/master:
  REF/TST: replace capture_stdout with pytest capsys fixture (pandas-dev#24501)
  BUG: fix .iat assignment creates a new column (pandas-dev#24495)
  DOC: add checks on the returns section in the docstrings (pandas-dev#23138) (pandas-dev#23432)
  ENH: Add strings_as_fixed_length parameter for df.to_records() (pandas-dev#18146) (pandas-dev#22229)
  TST: Skip db tests unless explicitly specified in -m pattern (pandas-dev#24492)
  Mix EA into DTA/TDA; part of 24024 (pandas-dev#24502)
  DOC: Fix building of a single API document (pandas-dev#24506)
@jbrockmendel jbrockmendel deleted the eamix branch December 31, 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
ExtensionArray Extending pandas with custom dtypes or arrays. Refactor Internal refactoring of code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants