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

DOC: avoid SparseArray.take error #23637

Merged
merged 1 commit into from
Nov 12, 2018

Conversation

TomAugspurger
Copy link
Contributor

Closes #22215

SparseArray.take not accepting scalars is already in 0.24.0.txt

Closes pandas-dev#22215

SparseArray.take not accepting scalars is already in 0.24.0.txt
@TomAugspurger TomAugspurger added this to the 0.24.0 milestone Nov 12, 2018
@TomAugspurger TomAugspurger added Sparse Sparse Data Type Docs labels Nov 12, 2018
@@ -266,7 +266,7 @@ These changes conform sparse handling to return the correct types and work to ma

``SparseArray.take`` now returns a scalar for scalar input, ``SparseArray`` for others. Furthermore, it handles a negative indexer with the same rule as ``Index`` (:issue:`10560`, :issue:`12796`)

.. ipython:: python
.. code-block:: python
Copy link
Contributor

Choose a reason for hiding this comment

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

is this supposed to work?

@TomAugspurger
Copy link
Contributor Author

TomAugspurger commented Nov 12, 2018 via email

@codecov
Copy link

codecov bot commented Nov 12, 2018

Codecov Report

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

Impacted file tree graph

@@           Coverage Diff           @@
##           master   #23637   +/-   ##
=======================================
  Coverage   92.24%   92.24%           
=======================================
  Files         161      161           
  Lines       51326    51326           
=======================================
  Hits        47347    47347           
  Misses       3979     3979
Flag Coverage Δ
#multiple 90.63% <ø> (ø) ⬆️
#single 42.32% <ø> (ø) ⬆️

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 011b79f...35bd824. Read the comment docs.

@jreback
Copy link
Contributor

jreback commented Nov 12, 2018

We changed API to not allow scalars in SparseArray.take

wait, so then that should just raise?

@TomAugspurger
Copy link
Contributor Author

TomAugspurger commented Nov 12, 2018 via email

@jreback
Copy link
Contributor

jreback commented Nov 12, 2018

oh! ic. ok then.

@jreback jreback merged commit 2d4dd50 into pandas-dev:master Nov 12, 2018
thoo added a commit to thoo/pandas that referenced this pull request Nov 12, 2018
…fixed

* upstream/master:
  DOC: avoid SparseArray.take error (pandas-dev#23637)
  CLN: remove incorrect usages of com.AbstractMethodError (pandas-dev#23625)
  DOC: Adding validation of the section order in docstrings (pandas-dev#23607)
  BUG: Don't over-optimize memory with jagged CSV (pandas-dev#23527)
  DEPR: Deprecate usecols as int in read_excel (pandas-dev#23635)
  More helpful Stata string length error. (pandas-dev#23629)
  BUG: astype fill_value for SparseArray.astype (pandas-dev#23547)
  CLN: datetimelike arrays: isort, small reorg (pandas-dev#23587)
  CI: Check in the CI that assert_raises_regex is not being used (pandas-dev#23627)
  CLN:Remove unused **kwargs from user facing methods (pandas-dev#23249)
avolkov pushed a commit to avolkov/pandas that referenced this pull request Nov 13, 2018
Closes pandas-dev#22215

SparseArray.take not accepting scalars is already in 0.24.0.txt
JustinZhengBC pushed a commit to JustinZhengBC/pandas that referenced this pull request Nov 14, 2018
Closes pandas-dev#22215

SparseArray.take not accepting scalars is already in 0.24.0.txt
tm9k1 pushed a commit to tm9k1/pandas that referenced this pull request Nov 19, 2018
Closes pandas-dev#22215

SparseArray.take not accepting scalars is already in 0.24.0.txt
Pingviinituutti pushed a commit to Pingviinituutti/pandas that referenced this pull request Feb 28, 2019
Closes pandas-dev#22215

SparseArray.take not accepting scalars is already in 0.24.0.txt
Pingviinituutti pushed a commit to Pingviinituutti/pandas that referenced this pull request Feb 28, 2019
Closes pandas-dev#22215

SparseArray.take not accepting scalars is already in 0.24.0.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Docs Sparse Sparse Data Type
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants