Skip to content

Commit b57e5cc

Browse files
authored
TST: Feather RoundTrip Column Ordering (#34883)
1 parent 502052a commit b57e5cc

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

pandas/tests/io/test_feather.py

+6
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,12 @@ def test_read_columns(self):
115115
columns = ["col1", "col3"]
116116
self.check_round_trip(df, expected=df[columns], columns=columns)
117117

118+
@td.skip_if_no("pyarrow", min_version="0.17.1")
119+
def read_columns_different_order(self):
120+
# GH 33878
121+
df = pd.DataFrame({"A": [1, 2], "B": ["x", "y"], "C": [True, False]})
122+
self.check_round_trip(df, columns=["B", "A"])
123+
118124
def test_unsupported_other(self):
119125

120126
# mixed python objects

0 commit comments

Comments
 (0)