Skip to content

Commit 7f7e1b5

Browse files
author
Brendan Boerner
committed
BUG: fix HDFStore iterator to handle a where properly (GH8014)
* Fix iterator tests to compare to {lrb}_expected.
1 parent 1451c71 commit 7f7e1b5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pandas/io/tests/test_pytables.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -3483,19 +3483,19 @@ def test_select_iterator_8014(self):
34833483
where = "index >= '%s'" % beg_dt
34843484
results = [ s for s in store.select('df',where=where,chunksize=chunksize) ]
34853485
result = concat(results)
3486-
tm.assert_frame_equal(expected, result)
3486+
tm.assert_frame_equal(l_expected, result)
34873487

34883488
# select w/iterator and where clause, single term, end of range
34893489
where = "index <= '%s'" % end_dt
34903490
results = [ s for s in store.select('df',where=where,chunksize=chunksize) ]
34913491
result = concat(results)
3492-
tm.assert_frame_equal(expected, result)
3492+
tm.assert_frame_equal(r_expected, result)
34933493

34943494
# select w/iterator and where clause, inclusive range
34953495
where = "index >= '%s' & index <= '%s'" % (beg_dt, end_dt)
34963496
results = [ s for s in store.select('df',where=where,chunksize=chunksize) ]
34973497
result = concat(results)
3498-
tm.assert_frame_equal(expected, result)
3498+
tm.assert_frame_equal(b_expected, result)
34993499

35003500
def test_retain_index_attributes(self):
35013501

0 commit comments

Comments
 (0)