|
12 | 12 | import pandas as pd |
13 | 13 | from pandas import read_orc |
14 | 14 | import pandas._testing as tm |
15 | | -from pandas.core.arrays import StringArray |
16 | 15 |
|
17 | 16 | pytest.importorskip("pyarrow.orc") |
18 | 17 |
|
@@ -368,13 +367,9 @@ def test_orc_dtype_backend_numpy_nullable(): |
368 | 367 |
|
369 | 368 | expected = pd.DataFrame( |
370 | 369 | { |
371 | | - "string": StringArray(np.array(["a", "b", "c"], dtype=np.object_)), |
372 | | - "string_with_nan": StringArray( |
373 | | - np.array(["a", pd.NA, "c"], dtype=np.object_) |
374 | | - ), |
375 | | - "string_with_none": StringArray( |
376 | | - np.array(["a", pd.NA, "c"], dtype=np.object_) |
377 | | - ), |
| 370 | + "string": pd.array(np.array(["a", "b", "c"], dtype=np.object_)), |
| 371 | + "string_with_nan": pd.array(np.array(["a", pd.NA, "c"], dtype=np.object_)), |
| 372 | + "string_with_none": pd.array(np.array(["a", pd.NA, "c"], dtype=np.object_)), |
378 | 373 | "int": pd.Series([1, 2, 3], dtype="Int64"), |
379 | 374 | "int_with_nan": pd.Series([1, pd.NA, 3], dtype="Int64"), |
380 | 375 | "na_only": pd.Series([pd.NA, pd.NA, pd.NA], dtype="Int64"), |
|
0 commit comments