We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2c28a2c commit 708e5d3Copy full SHA for 708e5d3
pandas/tests/groupby/test_raises.py
@@ -219,7 +219,13 @@ def test_groupby_raises_string(
219
elif groupby_func in ["cummin", "cummax"]:
220
msg = msg.replace("object", "str")
221
elif groupby_func == "corrwith":
222
- msg = "'.*NumpySemantics' with dtype str does not support operation 'mean'"
+ if df["d"].dtype.storage == "pyarrow":
223
+ msg = (
224
+ "ArrowStringArrayNumpySemantics' with dtype str does not "
225
+ "support operation 'mean'"
226
+ )
227
+ else:
228
+ msg = "Cannot perform reduction 'mean' with string dtype"
229
230
if groupby_func == "fillna":
231
kind = "Series" if groupby_series else "DataFrame"
0 commit comments