8000 CLN: de-duplicate index validation code by jbrockmendel · Pull Request #22329 · pandas-dev/pandas · GitHub
[go: up one dir, main page]

Skip to content

CLN: de-duplicate index validation code #22329

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
merged 6 commits into from
Aug 22, 2018
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Merge branch 'master' of https://github.com/pandas-dev/pandas into ch…
…eck_index
  • Loading branch information
jbrockmendel committed Aug 16, 2018
commit 49ac36b9fd1ae3cb15e40d53d45611861199e638
7 changes: 7 additions & 0 deletions pandas/_libs/util.pxd
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,13 @@ ctypedef fused numeric:
cnp.float64_t


cdef inline void set_array_not_contiguous(ndarray ao) nogil:
# Numpy>=1.8-compliant equivalent to:
# ao->flags &= ~(NPY_ARRAY_C_CONTIGUOUS | NPY_ARRAY_F_CONTIGUOUS);
PyArray_CLEARFLAGS(ao,
(NPY_ARRAY_C_CONTIGUOUS | NPY_ARRAY_F_CONTIGUOUS))


cdef inline Py_ssize_t validate_indexer(ndarray arr, object loc) except -1:
"""
Cast the given indexer `loc` to an integer. If it is negative, i.e. a
Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.
0