Skip to content

Commit bb72c68

Browse files
committed
add TODO
1 parent 7c7c0dd commit bb72c68

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/core/indexes/numeric.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -166,8 +166,8 @@ def _ensure_array(cls, data, dtype, copy: bool):
166166
dtype = cls._ensure_dtype(dtype)
167167

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

0 commit comments

Comments
 (0)