Skip to content

CLN: typo cleanups #36276

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 3 commits into from
Sep 12, 2020
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion pandas/_libs/index.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ cdef class IndexEngine:
def get_indexer_non_unique(self, targets):
"""
Return an indexer suitable for taking from a non unique index
return the labels in the same order ast the target
return the labels in the same order as the target
and a missing indexer into the targets (which correspond
to the -1 indices in the results
"""
Expand Down
2 changes: 1 addition & 1 deletion pandas/tests/arrays/categorical/test_indexing.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ def test_get_indexer_non_unique(self, idx_values, key_values, key_class):
# GH 21448
key = key_class(key_values, categories=range(1, 5))
# Test for flat index and CategoricalIndex with same/different cats:
for dtype in None, "category", key.dtype:
for dtype in [None, "category", key.dtype]:
idx = Index(idx_values, dtype=dtype)
expected, exp_miss = idx.get_indexer_non_unique(key_values)
result, res_miss = idx.get_indexer_non_unique(key)
Expand Down
6 changes: 3 additions & 3 deletions scripts/validate_unwanted_patterns.py
Original file line number Diff line number Diff line change
Expand Up @@ -357,9 +357,9 @@ def main(
output_format : str
Output format of the error message.
file_extensions_to_check : str
Coma seperated values of what file extensions to check.
Comma seperated values of what file extensions to check.
Copy link
Member

Choose a reason for hiding this comment

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

Should be "comma separated" (not seperated). Here and below.

excluded_file_paths : str
Coma seperated values of what file paths to exclude during the check.
Comma seperated values of what file paths to exclude during the check.

Returns
-------
Expand Down Expand Up @@ -444,7 +444,7 @@ def main(
parser.add_argument(
"--included-file-extensions",
default="py,pyx,pxd,pxi",
help="Coma seperated file extensions to check.",
help="Comma seperated file extensions to check.",
)
parser.add_argument(
"--excluded-file-paths",
Expand Down