Commit 09d7019
authored
Fix deprecated string[pyarrow_numpy] in test_to_numpy_pandas_string (#4186)
* Fix deprecated string[pyarrow_numpy] in test_to_numpy_pandas_string
Xref pandas-dev/pandas#60152
* Add conditional to support string[pyarrow_numpy] for pandas<=2.2
Handle pd.StringDtype not having the na_value parameter in pandas 2.2 and below.
* Just use "str" for pyarrow backed arrays in pandas>=3.0
Otherwise will get an error on Python 3.12 tests when pd.StringDtype(storage="pyarrow", ...) is called without pyarrow installed.1 parent fe05c56 commit 09d7019
1 file changed
+9
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
371 | 371 | | |
372 | 372 | | |
373 | 373 | | |
374 | | - | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
375 | 383 | | |
376 | 384 | | |
377 | 385 | | |
| |||
0 commit comments