-
-
Notifications
You must be signed in to change notification settings - Fork 19k
Open
Labels
BugNumeric OperationsArithmetic, Comparison, and Logical operationsArithmetic, Comparison, and Logical operations
Description
Pandas version checks
-
I have checked that this issue has not already been reported.
-
I have confirmed this bug exists on the latest version of pandas.
-
I have confirmed this bug exists on the main branch of pandas.
Reproducible Example
import pandas as pd
left = pd.Series([pd.Timestamp(2025, 8, 20)] * 2)
right = left._values
left.sub(right, fill_value=left[0]) # <- raises
Issue Description
In Series._flex_method we have a check for elif isinstance(other, (np.ndarray, list, tuple)):
that should include ExtensionArray
Expected Behavior
N/A
Installed Versions
Replace this line with the output of pd.show_versions()
Metadata
Metadata
Assignees
Labels
BugNumeric OperationsArithmetic, Comparison, and Logical operationsArithmetic, Comparison, and Logical operations