-
-
Notifications
You must be signed in to change notification settings - Fork 18.7k
Closed
Labels
API DesignBugCompatpandas objects compatability with Numpy or Python functionspandas objects compatability with Numpy or Python functionsDatetimeDatetime data dtypeDatetime data dtypeTimedeltaTimedelta data typeTimedelta data type
Milestone
Description
Compare (on Python 2.7):
In [7]: pd.Timestamp('2000-01-01') > pd.Series(range(5))
TypeError: Cannot compare type 'Timestamp' with type 'int'
In [8]: pd.Timestamp('2000-01-01') > pd.DataFrame({'x': range(5)})
Out[8]:
x
0 True
1 True
2 True
3 True
4 True
Probably will fix this in the process of getting #8916 to pass, but I wanted to raise this as a separate issue in case this is intentional. Pretty sure it's not, but there was a test-case specifically introduced that relies on this behavior (see PR #4983).
Metadata
Metadata
Assignees
Labels
API DesignBugCompatpandas objects compatability with Numpy or Python functionspandas objects compatability with Numpy or Python functionsDatetimeDatetime data dtypeDatetime data dtypeTimedeltaTimedelta data typeTimedelta data type