@@ -54,7 +54,7 @@ def test_string_categorical_index_repr(self):
5454 expected = """CategoricalIndex(['あ', 'いい', 'ううう', 'あ', 'いい', 'ううう', 'あ', 'いい', 'ううう', 'あ',
5555 'いい', 'ううう', 'あ', 'いい', 'ううう', 'あ', 'いい', 'ううう', 'あ', 'いい',
5656 'ううう', 'あ', 'いい', 'ううう', 'あ', 'いい', 'ううう', 'あ', 'いい', 'ううう'],
57- categories=['あ', 'いい', 'ううう'], ordered=False, dtype='category')""" # noqa: E501
57+ categories=['あ', 'いい', 'ううう'], ordered=False, dtype='category')""" egory ') """ # noqa: E501
5858
5959 assert repr(idx) == expected
6060
@@ -63,15 +63,15 @@ def test_string_categorical_index_repr(self):
6363 expected = """ CategoricalIndex (['あ' , 'いい' , 'ううう' , 'あ' , 'いい' , 'ううう' , 'あ' , 'いい' , 'ううう' , 'あ' ,
6464 ...
6565 'ううう' , 'あ' , 'いい' , 'ううう' , 'あ' , 'いい' , 'ううう' , 'あ' , 'いい' , 'ううう' ],
66- categories=['あ', 'いい', 'ううう'], ordered=False, dtype='category', length=300)""" # noqa: E501
66+ categories = ['あ' , 'いい' , 'ううう' ], ordered = False , dtype = 'category' , length = 300 )"""length=300)""" # noqa: E501
6767
6868 assert repr (idx ) == expected
6969
7070 # larger categories
7171 idx = CategoricalIndex (list ("あいうえおかきくけこさしすせそ" ))
7272 expected = """CategoricalIndex(['あ', 'い', 'う', 'え', 'お', 'か', 'き', 'く', 'け', 'こ', 'さ', 'し',
7373 'す', 'せ', 'そ'],
74- categories=['あ', 'い', 'う', 'え', ..., 'し', 'す', 'せ', 'そ'], ordered=False, dtype='category')""" # noqa: E501
74+ categories=['あ', 'い', 'う', 'え', ..., 'し', 'す', 'せ', 'そ'], ordered=False, dtype='category')""" ory ') """ # noqa: E501
7575
7676 assert repr(idx) == expected
7777
@@ -88,7 +88,7 @@ def test_string_categorical_index_repr(self):
8888 'ううう' , 'あ' , 'いい' , 'ううう' , 'あ' , 'いい' , 'ううう' ,
8989 'あ' , 'いい' , 'ううう' , 'あ' , 'いい' , 'ううう' , 'あ' , 'いい' ,
9090 'ううう' , 'あ' , 'いい' , 'ううう' , 'あ' , 'いい' , 'ううう' ],
91- categories=['あ', 'いい', 'ううう'], ordered=False, dtype='category')""" # noqa: E501
91+ categories = ['あ' , 'いい' , 'ううう' ], ordered = False , dtype = 'category' )"""ory')""" # noqa: E501
9292
9393 assert repr (idx ) == expected
9494
@@ -99,14 +99,14 @@ def test_string_categorical_index_repr(self):
9999 ...
100100 'ううう', 'あ', 'いい', 'ううう', 'あ', 'いい', 'ううう',
101101 'あ', 'いい', 'ううう'],
102- categories=['あ', 'いい', 'ううう'], ordered=False, dtype='category', length=300)""" # noqa: E501
102+ categories=['あ', 'いい', 'ううう'], ordered=False, dtype='category', length=300)""" ength = 300 ) """ # noqa: E501
103103
104104 assert repr(idx) == expected
105105
106106 # larger categories
107107 idx = CategoricalIndex(list("あいうえおかきくけこさしすせそ"))
108108 expected = """ CategoricalIndex (['あ' , 'い' , 'う' , 'え' , 'お' , 'か' , 'き' , 'く' , 'け' , 'こ' ,
109109 'さ' , 'し' , 'す' , 'せ' , 'そ' ],
110- categories=['あ', 'い', 'う', 'え', ..., 'し', 'す', 'せ', 'そ'], ordered=False, dtype='category')""" # noqa: E501
110+ categories = ['あ' , 'い' , 'う' , 'え' , ..., 'し' , 'す' , 'せ' , 'そ' ], ordered = False , dtype = 'category' )""")""" # noqa: E501
111111
112112 assert repr (idx ) == expected
0 commit comments