Skip to content

Commit

Permalink
tests for issue pandas-dev#60563
Browse files Browse the repository at this point in the history
  • Loading branch information
NOBODIDI committed Dec 14, 2024
1 parent ba656b6 commit f26abfe
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions pandas/tests/arrays/categorical/test_dtypes.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import numpy as np
import pyarrow as pa
import pytest

from pandas.core.dtypes.dtypes import CategoricalDtype
Expand All @@ -11,6 +12,7 @@
Series,
Timestamp,
)
from pandas.core.dtypes.dtypes import ArrowDtype
import pandas._testing as tm


Expand Down Expand Up @@ -136,3 +138,17 @@ def test_interval_index_category(self):
[0, 1], [1, 2], dtype="interval[uint64, right]"
)
tm.assert_index_equal(result, expected)

def test_values_is_index():
# GH 60563
values = Index(['a1', 'a2'], dtype=ArrowDtype(pa.string()))
arr = values._data._pa_array.combine_chunks()

assert arr.equals(values._data._pa_array.combine_chunks())

def test_values_is_not_index():
# GH 60563
values = Series(['a1', 'a2'], dtype=ArrowDtype(pa.string()))
arr = values._pa_array.combine_chunks()

assert arr.equals(values._pa_array.combine_chunks())

0 comments on commit f26abfe

Please sign in to comment.