We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 64a366d commit 01812efCopy full SHA for 01812ef
pandas/tests/extension/test_arrow.py
@@ -1074,9 +1074,12 @@ def test_assign_column_in_dataframe(self, data):
1074
df["C"] = pd.Series(data)
1075
result = df.dtypes
1076
expected = pd.Series({"A": data.dtype, "B": data.dtype, "C": data.dtype})
1077
-
1078
tm.assert_series_equal(result, expected)
1079
+ def test_create_series_dtype(self, data):
1080
+ ser = pd.Series(data._pa_array)
1081
+ assert ser.dtype == data.dtype
1082
+
1083
1084
class TestLogicalOps:
1085
"""Various Series and DataFrame logical ops methods."""
0 commit comments