Skip to content

Commit b1a7e6b

Browse files
GH1383 Add support for creating Series/Index with dtype='category'
1 parent 3b17e7e commit b1a7e6b

File tree

2 files changed

+0
-3
lines changed

2 files changed

+0
-3
lines changed

tests/series/test_properties.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ def test_dt_property() -> None:
5353

5454
def test_array_property() -> None:
5555
"""Test that Series.array returns ExtensionArray and its subclasses"""
56-
# casting due to pandas-dev/pandas-stubs#1383
5756
check(
5857
assert_type(
5958
pd.Series([1], dtype="category").array,

tests/series/test_series.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2914,8 +2914,6 @@ def test_astype_categorical(cast_arg: CategoryDtypeArg, target_type: type) -> No
29142914
# pandas category
29152915
assert_type(s.astype(pd.CategoricalDtype()), "pd.Series[pd.CategoricalDtype]")
29162916
assert_type(s.astype(cast_arg), "pd.Series[pd.CategoricalDtype]")
2917-
# pyarrow dictionary
2918-
# assert_type(s.astype("dictionary[pyarrow]"), "pd.Series[Categorical]")
29192917

29202918

29212919
@pytest.mark.parametrize("cast_arg, target_type", ASTYPE_OBJECT_ARGS, ids=repr)

0 commit comments

Comments
 (0)