Skip to content

Commit c4b0780

Browse files
committed
Add comment
1 parent 7f04bdc commit c4b0780

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pandas/core/indexing.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2003,6 +2003,9 @@ def _setitem_single_column(self, loc: int, value, plane_indexer):
20032003
new_values = self.obj._get_column_array(loc)
20042004
warn = can_hold_element(orig_values, new_values)
20052005

2006+
# Don't issue the warning yet, as we can still trim a few cases where
2007+
# behavior will not change.
2008+
20062009
if warn:
20072010

20082011
if (

0 commit comments

Comments
 (0)