REGR: Adding a row via DataFrame.at #48296
Labels
Bug
Indexing
Related to indexing on series/frames, not to indexes themselves
Needs Tests
Unit test(s) needed to prevent regressions
Regression
Functionality that used to work in a prior pandas version
Milestone
On 1.4.x, this gives
whereas on 1.5.0rc0 it gives
pandas.errors.InvalidIndexError: slice(None, None, None)
. I didn't any mention of this in the whatsnew, and a git bisect points at #47074; cc @jorisvandenbossche.The docs of
DataFrame.at
explicitly say a KeyError is raised when the label is not in the frame. It seems to me this operation should not be supported, and can be considered a bugfix, but would be better to raiseKeyError: label 2 not found
.The text was updated successfully, but these errors were encountered: