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

Fix a typo #15844

Merged
merged 1 commit into from
Mar 30, 2017
Merged

Fix a typo #15844

merged 1 commit into from
Mar 30, 2017

Conversation

crayxt
Copy link
Contributor

@crayxt crayxt commented Mar 30, 2017

Fixes a small typo.

@@ -71,7 +71,7 @@ cdef class IntIndex(SparseIndex):
def check_integrity(self):
"""
Only need be strictly ascending and nothing less than 0 or greater than
totall ength
total length
"""
pass
Copy link
Member

@gfyoung gfyoung Mar 30, 2017

Choose a reason for hiding this comment

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

@crayxt : Thanks for patching this! Seems though that there might be bigger questions beyond just a simple typo fix (for better or worse) 😄

Though FYI, given how trivial the change is, you can also add [ci skip] to messages of commits like these to avoid triggering builds that should most certainly pass.

@jreback : Is there any reason that this is implemented (not required from super-class)?

I don't see it used anywhere by IntIndex, and the implementation is just pass even though the documentation (grammar error notwithstanding) says it should do something.

If it is supposed to be used, should we move this method to the SparseIndex class (common method among the two sub-classes in that file)?

Copy link
Contributor

Choose a reason for hiding this comment

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

yeah looks like was for a possible impl. Certainly could refactor if you'd like.

@codecov
Copy link

codecov bot commented Mar 30, 2017

Codecov Report

Merging #15844 into master will decrease coverage by 0.01%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #15844      +/-   ##
==========================================
- Coverage   90.97%   90.96%   -0.02%     
==========================================
  Files         143      143              
  Lines       49442    49442              
==========================================
- Hits        44982    44973       -9     
- Misses       4460     4469       +9
Flag Coverage Δ
#multiple 88.72% <ø> (ø) ⬆️
#single 40.69% <ø> (-0.11%) ⬇️
Impacted Files Coverage Δ
pandas/io/gbq.py 25% <0%> (-58.34%) ⬇️
pandas/core/frame.py 97.56% <0%> (-0.1%) ⬇️

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 de589c2...57c877e. Read the comment docs.

@jreback jreback added Docs Sparse Sparse Data Type labels Mar 30, 2017
@jreback jreback added this to the 0.20.0 milestone Mar 30, 2017
@jreback jreback merged commit 48749ce into pandas-dev:master Mar 30, 2017
@jreback
Copy link
Contributor

jreback commented Mar 30, 2017

thanks @crayxt

jreback pushed a commit that referenced this pull request Apr 2, 2017
The check_integrity method of IntIndex in pandas.sparse was un-
implemented despite having documentation.  This PR implements the
method and calls it when initializing `IntIndex`.    xref <a
href="https://github.com/pandas-
dev/pandas/pull/15844#discussion_r108840154">#15844 (comment)</a>

Author: gfyoung <gfyoung17@gmail.com>

Closes #15863 from gfyoung/sparse-pyx-refactor and squashes the following commits:

f435d28 [gfyoung] BUG: Check integrity of sparse int indices
mattip pushed a commit to mattip/pandas that referenced this pull request Apr 3, 2017
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.

3 participants