Skip to content

Commit 2067d7e

Browse files
authored
CLN: typo cleanups (#36276)
* typo cleanups * typo fixup
1 parent 5450233 commit 2067d7e

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

pandas/_libs/index.pyx

+1-1
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ cdef class IndexEngine:
260260
def get_indexer_non_unique(self, targets):
261261
"""
262262
Return an indexer suitable for taking from a non unique index
263-
return the labels in the same order ast the target
263+
return the labels in the same order as the target
264264
and a missing indexer into the targets (which correspond
265265
to the -1 indices in the results
266266
"""

pandas/tests/arrays/categorical/test_indexing.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ def test_get_indexer_non_unique(self, idx_values, key_values, key_class):
183183
# GH 21448
184184
key = key_class(key_values, categories=range(1, 5))
185185
# Test for flat index and CategoricalIndex with same/different cats:
186-
for dtype in None, "category", key.dtype:
186+
for dtype in [None, "category", key.dtype]:
187187
idx = Index(idx_values, dtype=dtype)
188188
expected, exp_miss = idx.get_indexer_non_unique(key_values)
189189
result, res_miss = idx.get_indexer_non_unique(key)

scripts/validate_unwanted_patterns.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -357,9 +357,9 @@ def main(
357357
output_format : str
358358
Output format of the error message.
359359
file_extensions_to_check : str
360-
Coma seperated values of what file extensions to check.
360+
Comma separated values of what file extensions to check.
361361
excluded_file_paths : str
362-
Coma seperated values of what file paths to exclude during the check.
362+
Comma separated values of what file paths to exclude during the check.
363363
364364
Returns
365365
-------
@@ -444,7 +444,7 @@ def main(
444444
parser.add_argument(
445445
"--included-file-extensions",
446446
default="py,pyx,pxd,pxi",
447-
help="Coma seperated file extensions to check.",
447+
help="Comma separated file extensions to check.",
448448
)
449449
parser.add_argument(
450450
"--excluded-file-paths",

0 commit comments

Comments
 (0)