Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion pandas/core/frame.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,7 @@
nargsort,
)

from pandas.errors import InvalidIndexError
from pandas.io.common import get_handle
from pandas.io.formats import (
console,
Expand Down Expand Up @@ -3872,7 +3873,7 @@ def _set_value(
# or ValueError
series._mgr.setitem_inplace(loc, value)

except (KeyError, TypeError, ValueError):
except (KeyError, TypeError, ValueError, InvalidIndexError):
# set using a non-recursive method & reset the cache
if takeable:
self.iloc[index, col] = value
Expand Down