Skip to content

Commit e3c71f2

Browse files
committed
FIX bad get_dummies test in py3
1 parent c320a15 commit e3c71f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/tests/test_reshape.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ def test_include_na(self):
189189
res_na = get_dummies(s, dummy_na=True)
190190
exp_na = DataFrame({nan: {0: 0.0, 1: 0.0, 2: 1.0},
191191
'a': {0: 1.0, 1: 0.0, 2: 0.0},
192-
'b': {0: 0.0, 1: 1.0, 2: 0.0}}).iloc[:, [1, 2, 0]]
192+
'b': {0: 0.0, 1: 1.0, 2: 0.0}}).reindex_axis(['a', 'b', nan], 1)
193193
# hack (NaN handling in assert_index_equal)
194194
exp_na.columns = res_na.columns
195195
assert_frame_equal(res_na, exp_na)

0 commit comments

Comments
 (0)