Skip to content

API: Revert breaking .values changes #24163

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

Conversation

TomAugspurger
Copy link
Contributor

User-facing change: Series[period].values nad Series[interval].values
continues to be an ndarray of objects. Recommend .array instead.

There are a handful of related places in pandas where we assumed that
Series[EA].values was an EA.

Part of #23995

User-facing change: `Series[period].values` nad `Series[interval].values`
continues to be an ndarray of objects. Recommend ``.array`` instead.

There are a handful of related places in pandas where we assumed that
``Series[EA].values`` was an EA.

Part of pandas-dev#23995
@TomAugspurger TomAugspurger added Dtype Conversions Unexpected or buggy dtype conversions API Design ExtensionArray Extending pandas with custom dtypes or arrays. labels Dec 8, 2018
@TomAugspurger TomAugspurger added this to the 0.24.0 milestone Dec 8, 2018
@pep8speaks
Copy link

Hello @TomAugspurger! Thanks for submitting the PR.

@TomAugspurger TomAugspurger mentioned this pull request Dec 8, 2018
3 tasks
@codecov
Copy link

codecov bot commented Dec 8, 2018

Codecov Report

Merging #24163 into master will increase coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #24163      +/-   ##
==========================================
+ Coverage    92.2%    92.2%   +<.01%     
==========================================
  Files         162      162              
  Lines       51700    51712      +12     
==========================================
+ Hits        47670    47682      +12     
  Misses       4030     4030
Flag Coverage Δ
#multiple 90.6% <100%> (ø) ⬆️
#single 43.03% <50%> (ø) ⬆️
Impacted Files Coverage Δ
pandas/util/testing.py 87.41% <100%> (ø) ⬆️
pandas/core/internals/managers.py 95.93% <100%> (+0.01%) ⬆️
pandas/core/internals/blocks.py 93.67% <100%> (+0.02%) ⬆️
pandas/core/reshape/reshape.py 99.56% <100%> (ø) ⬆️
pandas/core/base.py 97.64% <100%> (ø) ⬆️
pandas/core/indexes/datetimes.py 96.34% <100%> (+0.02%) ⬆️

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 c911151...7c22e92. Read the comment docs.

1 similar comment
@codecov
Copy link

codecov bot commented Dec 8, 2018

Codecov Report

Merging #24163 into master will increase coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #24163      +/-   ##
==========================================
+ Coverage    92.2%    92.2%   +<.01%     
==========================================
  Files         162      162              
  Lines       51700    51712      +12     
==========================================
+ Hits        47670    47682      +12     
  Misses       4030     4030
Flag Coverage Δ
#multiple 90.6% <100%> (ø) ⬆️
#single 43.03% <50%> (ø) ⬆️
Impacted Files Coverage Δ
pandas/util/testing.py 87.41% <100%> (ø) ⬆️
pandas/core/internals/managers.py 95.93% <100%> (+0.01%) ⬆️
pandas/core/internals/blocks.py 93.67% <100%> (+0.02%) ⬆️
pandas/core/reshape/reshape.py 99.56% <100%> (ø) ⬆️
pandas/core/base.py 97.64% <100%> (ø) ⬆️
pandas/core/indexes/datetimes.py 96.34% <100%> (+0.02%) ⬆️

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 c911151...7c22e92. Read the comment docs.

@jreback
Copy link
Contributor

jreback commented Dec 8, 2018

lgtm

@TomAugspurger
Copy link
Contributor Author

Only failure was the Azure lining, which has since been fixed on master.

@jorisvandenbossche IIRC, you preferred that Series[period].values would return an ndarray of objects right?

@jorisvandenbossche
Copy link
Member

you preferred that Series[period].values would return an ndarray of objects right?

That might be :-) In any case, since then we added array, so I think the rationale to keep .values backward compatible makes sense.

@TomAugspurger
Copy link
Contributor Author

Sounds good. Merging.

@TomAugspurger TomAugspurger merged commit 6983905 into pandas-dev:master Dec 9, 2018
@TomAugspurger TomAugspurger deleted the public-data-revert-values branch December 9, 2018 12:11
Pingviinituutti pushed a commit to Pingviinituutti/pandas that referenced this pull request Feb 28, 2019
* API: Revert breaking `.values` changes

User-facing change: `Series[period].values` nad `Series[interval].values`
continues to be an ndarray of objects. Recommend ``.array`` instead.

There are a handful of related places in pandas where we assumed that
``Series[EA].values`` was an EA.

Part of pandas-dev#23995
Pingviinituutti pushed a commit to Pingviinituutti/pandas that referenced this pull request Feb 28, 2019
* API: Revert breaking `.values` changes

User-facing change: `Series[period].values` nad `Series[interval].values`
continues to be an ndarray of objects. Recommend ``.array`` instead.

There are a handful of related places in pandas where we assumed that
``Series[EA].values`` was an EA.

Part of pandas-dev#23995
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API Design Dtype Conversions Unexpected or buggy dtype conversions ExtensionArray Extending pandas with custom dtypes or arrays.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants