Skip to content

Commit

Permalink
add TODO
Browse files Browse the repository at this point in the history
  • Loading branch information
topper-123 committed Jul 29, 2021
1 parent d804bb6 commit ca0c49f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pandas/core/indexes/numeric.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,8 +166,8 @@ def _ensure_array(cls, data, dtype, copy: bool):
dtype = cls._ensure_dtype(dtype)

if copy or not is_dtype_equal(data.dtype, dtype):
# the try/except below is because it's difficult to predict the error
# and/or error message from different combinations of data and type.
# TODO: the try/except below is because it's difficult to predict the error
# and/or error message from different combinations of data and dtype.
# Efforts to avoid this try/except welcome.
# See https://github.com/pandas-dev/pandas/pull/41153#discussion_r676206222
try:
Expand Down

0 comments on commit ca0c49f

Please sign in to comment.