File tree Expand file tree Collapse file tree 2 files changed +8
-12
lines changed Expand file tree Collapse file tree 2 files changed +8
-12
lines changed Original file line number Diff line number Diff line change @@ -154,16 +154,11 @@ def __init__(
154
154
) -> None :
155
155
# infer defaults
156
156
if storage is None :
157
- if na_value is not libmissing .NA :
158
- storage = get_option ("mode.string_storage" )
159
- if storage == "auto" :
160
- if HAS_PYARROW :
161
- storage = "pyarrow"
162
- else :
163
- storage = "python"
164
- else :
165
- storage = get_option ("mode.string_storage" )
166
- if storage == "auto" :
157
+ storage = get_option ("mode.string_storage" )
158
+ if storage == "auto" :
159
+ if HAS_PYARROW :
160
+ storage = "pyarrow"
161
+ else :
167
162
storage = "python"
168
163
169
164
if storage == "pyarrow_numpy" :
Original file line number Diff line number Diff line change 4
4
import numpy as np
5
5
import pytest
6
6
7
+ from pandas .compat import HAS_PYARROW
7
8
import pandas .util ._test_decorators as td
8
9
9
10
import pandas as pd
@@ -26,10 +27,10 @@ def test_eq_all_na():
26
27
tm .assert_extension_array_equal (result , expected )
27
28
28
29
29
- def test_config (string_storage , using_infer_string ):
30
+ def test_config (string_storage ):
30
31
# with the default string_storage setting
31
32
# always "python" at the moment
32
- assert StringDtype ().storage == "python"
33
+ assert StringDtype ().storage == "pyarrow" if HAS_PYARROW else " python"
33
34
34
35
with pd .option_context ("string_storage" , string_storage ):
35
36
assert StringDtype ().storage == string_storage
You can’t perform that action at this time.
0 commit comments