Skip to content

Commit 627f112

Browse files
committed
Merge remote-tracking branch 'upstream/main' into stata-read-dta110
2 parents 6fcd114 + b1cc442 commit 627f112

7 files changed

+9
-0
lines changed
771 Bytes
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

pandas/tests/io/test_stata.py

+9
Original file line numberDiff line numberDiff line change
@@ -2002,6 +2002,15 @@ def test_backward_compat(version, datapath):
20022002
tm.assert_frame_equal(old_dta, expected, check_dtype=False)
20032003

20042004

2005+
@pytest.mark.parametrize("version", [105, 108, 111, 113, 114, 118])
2006+
def test_bigendian(version, datapath):
2007+
ref = datapath("io", "data", "stata", f"stata-compat-{version}.dta")
2008+
big = datapath("io", "data", "stata", f"stata-compat-be-{version}.dta")
2009+
expected = read_stata(ref)
2010+
big_dta = read_stata(big)
2011+
tm.assert_frame_equal(big_dta, expected)
2012+
2013+
20052014
def test_direct_read(datapath, monkeypatch):
20062015
file_path = datapath("io", "data", "stata", "stata-compat-118.dta")
20072016

0 commit comments

Comments
 (0)