Skip to content

Commit

Permalink
pep8
Browse files Browse the repository at this point in the history
  • Loading branch information
jschendel committed Nov 20, 2017
1 parent 4e899db commit 8c6dd4c
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions pandas/tests/test_categorical.py
Original file line number Diff line number Diff line change
Expand Up @@ -2245,14 +2245,14 @@ def test_empty_astype(self, columns):

def test_construction_series(self):

l = [1, 2, 3, 1]
exp = Series(l).astype('category')
res = Series(l, dtype='category')
data = [1, 2, 3, 1]
exp = Series(data).astype('category')
res = Series(data, dtype='category')
tm.assert_series_equal(res, exp)

l = ["a", "b", "c", "a"]
exp = Series(l).astype('category')
res = Series(l, dtype='category')
data = ["a", "b", "c", "a"]
exp = Series(data).astype('category')
res = Series(data, dtype='category')
tm.assert_series_equal(res, exp)

# insert into frame with different index
Expand Down

0 comments on commit 8c6dd4c

Please sign in to comment.