Skip to content

Commit

Permalink
end->stop
Browse files Browse the repository at this point in the history
  • Loading branch information
mroeschke committed Oct 26, 2023
1 parent 64b03f9 commit 2b5c4b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pandas/core/dtypes/cast.py
Original file line number Diff line number Diff line change
Expand Up @@ -1916,7 +1916,7 @@ def _dtype_can_hold_range(rng: range, dtype: np.dtype) -> bool:
"""
if not len(rng):
return True
return np_can_cast_scalar(rng.start, dtype) and np_can_cast_scalar(rng.end, dtype)
return np_can_cast_scalar(rng.start, dtype) and np_can_cast_scalar(rng.stop, dtype)


def np_can_cast_scalar(element: Scalar, dtype: np.dtype) -> bool:
Expand Down

0 comments on commit 2b5c4b0

Please sign in to comment.