Skip to content

Commit b4ec020

Browse files
authored
TST: Added test for strides in column major Dataframes stored in HDFS… (pandas-dev#47616)
TST: Added test for strides in column major Dataframes stored in HDFStore
1 parent 9a8b193 commit b4ec020

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

pandas/tests/io/pytables/test_store.py

+8
Original file line numberDiff line numberDiff line change
@@ -1019,3 +1019,11 @@ def test_hdfstore_iteritems_deprecated(setup_path):
10191019
hdf.put("table", df)
10201020
with tm.assert_produces_warning(FutureWarning):
10211021
next(hdf.iteritems())
1022+
1023+
1024+
def test_hdfstore_strides(setup_path):
1025+
# GH22073
1026+
df = DataFrame({"a": [1, 2, 3, 4], "b": [5, 6, 7, 8]})
1027+
with ensure_clean_store(setup_path) as store:
1028+
store.put("df", df)
1029+
assert df["a"].values.strides == store["df"]["a"].values.strides

0 commit comments

Comments
 (0)