Skip to content

Commit 01812ef

Browse files
committed
Add test for series instanciation with pyarrow type
1 parent 64a366d commit 01812ef

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

pandas/tests/extension/test_arrow.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1074,9 +1074,12 @@ def test_assign_column_in_dataframe(self, data):
10741074
df["C"] = pd.Series(data)
10751075
result = df.dtypes
10761076
expected = pd.Series({"A": data.dtype, "B": data.dtype, "C": data.dtype})
1077-
10781077
tm.assert_series_equal(result, expected)
10791078

1079+
def test_create_series_dtype(self, data):
1080+
ser = pd.Series(data._pa_array)
1081+
assert ser.dtype == data.dtype
1082+
10801083

10811084
class TestLogicalOps:
10821085
"""Various Series and DataFrame logical ops methods."""

0 commit comments

Comments
 (0)