8000 replaced inplace=True for set index in testcase, added newline at the… · pandas-dev/pandas@9af8a47 · GitHub
[go: up one dir, main page]

Skip to content

Commit 9af8a47

Browse files
committed
replaced inplace=True for set index in testcase, added newline at the end of whatsnew file
1 parent 2c48282 commit 9af8a47

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

doc/source/whatsnew/v0.21.0.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,4 +327,4 @@ Categorical
327327
Other
328328
^^^^^
329329
- Bug in :func:`eval` where the ``inplace`` parameter was being incorrectly handled (:issue:`16732`)
330-
- Bug in ``.isin()`` in which checking membership in empty ``Series`` objects raised an error (:issue:`16991`)
330+
- Bug in ``.isin()`` in which checking membership in empty ``Series`` objects raised an error (:issue:`16991`)

pandas/tests/groupby/test_groupby.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3899,7 +3899,7 @@ def test_gb_key_len_equal_axis_len(self):
38993899
['foo', 'bar', 'B', 2],
39003900
['foo', 'baz', 'C', 3]],
39013901
columns=['first', 'second', 'third', 'one'])
3902-
df.set_index(['first', 'second'], inplace=True)
3902+
df = df.set_index(['first', 'second'])
39033903
df = df.groupby(['first', 'second', 'third']).size()
39043904
assert df.loc[('foo', 'bar', 'B')] == 2
39053905
assert df.loc[('foo', 'baz', 'C')] == 1

0 commit comments

Comments
 (0)
0