Skip to content

Commit

Permalink
revert accidental changes
Browse files Browse the repository at this point in the history
  • Loading branch information
lithomas1 committed Nov 28, 2023
1 parent 1ec6bb3 commit 76e387d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions pandas/core/indexes/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -5254,6 +5254,7 @@ def _validate_fill_value(self, value):
"""
dtype = self.dtype
if isinstance(dtype, np.dtype) and dtype.kind not in "mM":
# return np_can_hold_element(dtype, value)
try:
return np_can_hold_element(dtype, value)
except LossySetitemError as err:
Expand Down Expand Up @@ -6916,9 +6917,6 @@ def insert(self, loc: int, item) -> Index:
dtype = self._find_common_type_compat(item)
return self.astype(dtype).insert(loc, item)

print(item)
print(type(item))

if arr.dtype != object or not isinstance(
item, (tuple, np.datetime64, np.timedelta64)
):
Expand Down

0 comments on commit 76e387d

Please sign in to comment.