Skip to content

Commit b1f1f37

Browse files
authored
STYLE: fix pylint redefined-outer-name warnings (#49656) (#49743)
pandas/core/algorithms.py
1 parent 25f8968 commit b1f1f37

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pandas/core/algorithms.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -278,8 +278,8 @@ def _get_hashtable_algo(values: np.ndarray):
278278
values = _ensure_data(values)
279279

280280
ndtype = _check_object_for_strings(values)
281-
htable = _hashtables[ndtype]
282-
return htable, values
281+
hashtable = _hashtables[ndtype]
282+
return hashtable, values
283283

284284

285285
def _check_object_for_strings(values: np.ndarray) -> str:
@@ -416,9 +416,9 @@ def unique_with_mask(values, mask: npt.NDArray[np.bool_] | None = None):
416416
return values.unique()
417417

418418
original = values
419-
htable, values = _get_hashtable_algo(values)
419+
hashtable, values = _get_hashtable_algo(values)
420420

421-
table = htable(len(values))
421+
table = hashtable(len(values))
422422
if mask is None:
423423
uniques = table.unique(values)
424424
uniques = _reconstruct_data(uniques, original.dtype, original)

0 commit comments

Comments
 (0)