Skip to content

Commit f0d4949

Browse files
committed
Fix 32 syntax u error
1 parent 39fa180 commit f0d4949

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

pandas/tests/test_frame.py

+7-6
Original file line numberDiff line numberDiff line change
@@ -5970,18 +5970,18 @@ def test_boolean_comparison(self):
59705970

59715971
def test_equals_different_blocks(self):
59725972
# GH 9330
5973-
df0 = pd.DataFrame({"A": ["x","y"], "B": [1,2],
5973+
df0 = pd.DataFrame({"A": ["x","y"], "B": [1,2],
59745974
"C": ["w","z"]})
59755975
df1 = df0.reset_index()[["A","B","C"]]
5976-
# this assert verifies that the above operations have
5976+
# this assert verifies that the above operations have
59775977
# induced a block rearrangement
5978-
self.assertTrue(df0._data.blocks[0].dtype !=
5978+
self.assertTrue(df0._data.blocks[0].dtype !=
59795979
df1._data.blocks[0].dtype)
59805980
# do the real tests
59815981
self.assert_frame_equal(df0, df1)
59825982
self.assertTrue(df0.equals(df1))
59835983
self.assertTrue(df1.equals(df0))
5984-
5984+
59855985
def test_to_csv_from_csv(self):
59865986

59875987
pname = '__tmp_to_csv_from_csv__'
@@ -12431,9 +12431,10 @@ def test_unstack_bool(self):
1243112431
def test_unstack_level_binding(self):
1243212432
# GH9856
1243312433
mi = pd.MultiIndex(
12434-
levels=[[u'foo', u'bar'], [u'one', u'two'], [u'a', u'b']],
12434+
levels=[[u('foo'), u('bar')], [u('one'), u('two')],
12435+
[u('a'), u('b')]],
1243512436
labels=[[0, 0, 1, 1], [0, 1, 0, 1], [1, 0, 1, 0]],
12436-
names=[u'first', u'second', u'third'])
12437+
names=[u('first'), u('second'), u('third')])
1243712438
s = pd.Series(0, index=mi)
1243812439
result = s.unstack([1, 2]).stack(0)
1243912440

0 commit comments

Comments
 (0)