You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The examples in the documentation for pd.Interval show in the end that Intervals with string endpoints can also be created. However, when the example is run on master, a ValueError is raised, saying:
"Only numeric, Timestamp and Timedelta endpoints are allowed when constructing an Interval."
Suggested fix for documentation
If Intervals with strings as endpoints are not allowed anymore, this example should be removed from the documentation.
I've confirmed that the docstring still contains this example, so I'd be happy to make a PR for this if we agree.
The text was updated successfully, but these errors were encountered:
Location of the documentation
https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.Interval.html
On
master
:https://pandas.pydata.org/docs/dev/reference/api/pandas.Interval.html
Documentation problem
The examples in the documentation for
pd.Interval
show in the end that Intervals with string endpoints can also be created. However, when the example is run onmaster
, aValueError
is raised, saying:"Only numeric, Timestamp and Timedelta endpoints are allowed when constructing an Interval."
Suggested fix for documentation
If Intervals with strings as endpoints are not allowed anymore, this example should be removed from the documentation.
I've confirmed that the docstring still contains this example, so I'd be happy to make a PR for this if we agree.
The text was updated successfully, but these errors were encountered: