Skip to content

Commit 7895c16

Browse files
committed
flake8
1 parent f3f492a commit 7895c16

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

pandas/tests/msgpack/test_unpack.py

+5-4
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
import pytest
66
from pandas import DataFrame, read_msgpack
77

8+
89
class TestUnpack(tm.TestCase):
910

1011
def test_unpack_array_header_from_file(self):
@@ -62,14 +63,14 @@ def _hook(self, code, data):
6263
assert unpacker.unpack() == {'a': 123}
6364
unpacker.feed(packb({'a': ExtType(2, b'321')}, encoding='utf-8'))
6465
assert unpacker.unpack() == {'a': ExtType(2, b'321')}
65-
66+
6667
def test_unpack_categorical_index(self):
6768
'''dataframe with CategoricalIndex can be read and written'''
68-
pdf = DataFrame(dict(A=[1,1,1,2,2,2], B = [1,2,3,4,5,6]))
69+
pdf = DataFrame(dict(A=[1, 1, 1, 2, 2, 2], B=[1, 2, 3, 4, 5, 6]))
6970
pdf['A'] = pdf['A'].astype('category')
70-
pdf.set_index('A', inplace = True)
71+
pdf.set_index('A', inplace=True)
7172
f = BytesIO()
7273
pdf.to_msgpack(f)
7374
f.seek(0)
7475
pdf2 = read_msgpack(f)
75-
tm.assert_frame_equal(pdf, pdf2)
76+
tm.assert_frame_equal(pdf, pdf2)

0 commit comments

Comments
 (0)