File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed
pandas/tests/arrays/categorical Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change 2
2
import pyarrow as pa
3
3
import pytest
4
4
5
- from pandas .core .dtypes .dtypes import CategoricalDtype
5
+ from pandas .core .dtypes .dtypes import (
6
+ ArrowDtype ,
7
+ CategoricalDtype ,
8
+ )
6
9
7
10
from pandas import (
8
11
Categorical ,
12
15
Series ,
13
16
Timestamp ,
14
17
)
15
- from pandas .core .dtypes .dtypes import ArrowDtype
16
18
import pandas ._testing as tm
17
19
18
20
@@ -141,14 +143,14 @@ def test_interval_index_category(self):
141
143
142
144
def test_values_is_index ():
143
145
# GH 60563
144
- values = Index (['a1' , 'a2' ], dtype = ArrowDtype (pa .string ()))
146
+ values = Index (["a1" , "a2" ], dtype = ArrowDtype (pa .string ()))
145
147
arr = values ._data ._pa_array .combine_chunks ()
146
148
147
149
assert arr .equals (values ._data ._pa_array .combine_chunks ())
148
150
149
151
def test_values_is_not_index ():
150
152
# GH 60563
151
- values = Series (['a1' , 'a2' ], dtype = ArrowDtype (pa .string ()))
153
+ values = Series (["a1" , "a2" ], dtype = ArrowDtype (pa .string ()))
152
154
arr = values ._pa_array .combine_chunks ()
153
155
154
- assert arr .equals (values ._pa_array .combine_chunks ())
156
+ assert arr .equals (values ._pa_array .combine_chunks ())
You can’t perform that action at this time.
0 commit comments