Skip to content

Commit 6d6764f

Browse files
author
Joseph Wagner
committed
move whatsnew; minor test fixes (pandas-dev#16209)
1 parent 7c461b2 commit 6d6764f

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

doc/source/whatsnew/v0.20.2.txt

+1
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ I/O
5151

5252
- Bug that would force importing of the clipboard routines unnecessarily, potentially causing an import error on startup (:issue:`16288`)
5353

54+
- Bug in ``HDFStore.select_as_multiple()`` where start/stop arguments were not respected (:issue:`16209`)
5455

5556
Plotting
5657
^^^^^^^^

doc/source/whatsnew/v0.21.0.txt

-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,6 @@ Indexing
8282
I/O
8383
^^^
8484

85-
- Bug in ``HDFStore.select_as_multiple()`` where start/stop arguments were not respected (:issue:`16209`)
8685

8786

8887
Plotting

pandas/tests/io/test_pytables.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -4188,6 +4188,7 @@ def test_start_stop_table(self):
41884188

41894189
def test_start_stop_multiple(self):
41904190

4191+
# GH 16209
41914192
with ensure_clean_store(self.path) as store:
41924193

41934194
df = DataFrame({"foo": [1, 2], "bar": [1, 2]})
@@ -4197,7 +4198,7 @@ def test_start_stop_multiple(self):
41974198
result = store.select_as_multiple(['selector', 'data'],
41984199
selector='selector', start=0,
41994200
stop=1)
4200-
expected = df[['foo', 'bar']].iloc[[0]]
4201+
expected = df.loc[[0], ['foo', 'bar']]
42014202
tm.assert_frame_equal(result, expected)
42024203

42034204
def test_start_stop_fixed(self):

0 commit comments

Comments
 (0)