ai-content-maker/.venv/Lib/site-packages/pandas/tests/extension/arrow/test_string.py

13 lines
306 B
Python
Raw Permalink Normal View History

2024-05-03 04:18:51 +03:00
import pytest
import pandas as pd
pytest.importorskip("pyarrow", minversion="1.0.0")
def test_constructor_from_list():
# GH 27673
result = pd.Series(["E"], dtype=pd.StringDtype(storage="pyarrow"))
assert isinstance(result.dtype, pd.StringDtype)
assert result.dtype.storage == "pyarrow"