File tree 2 files changed +3
-6
lines changed
2 files changed +3
-6
lines changed Original file line number Diff line number Diff line change 67
67
ExtensionArray ,
68
68
TimedeltaArray ,
69
69
)
70
- from pandas .core .arrays .string_ import StringDtype
71
70
from pandas .core .base import PandasObject
72
71
import pandas .core .common as com
73
72
from pandas .core .indexes .api import (
@@ -1218,8 +1217,6 @@ def _format(x):
1218
1217
return self .na_rep
1219
1218
elif isinstance (x , PandasObject ):
1220
1219
return str (x )
1221
- elif isinstance (x , StringDtype ):
1222
- return repr (x )
1223
1220
else :
1224
1221
# object dtype
1225
1222
return str (formatter (x ))
Original file line number Diff line number Diff line change @@ -777,9 +777,9 @@ def test_to_string_string_dtype(self):
777
777
result = df .dtypes .to_string ()
778
778
expected = dedent (
779
779
"""\
780
- x string[pyarrow]
781
- y string[python]
782
- z int64[pyarrow]"""
780
+ x string
781
+ y string
782
+ z int64[pyarrow]"""
783
783
)
784
784
assert result == expected
785
785
You can’t perform that action at this time.
0 commit comments