-
-
Notifications
You must be signed in to change notification settings - Fork 18.6k
pd.to_datetime() fails for KeyError when raising monotonic increasing index ValueError #42635
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@pytest.mark.parametrize("cache", [True, False]) | ||
def test_to_datetime_monotonic_increasing_index(cache): | ||
# GH28238 | ||
times = date_range(Timestamp("1980"), periods=50, freq="YS") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you please use the variable start_caching_at
to ensure this stays consistent?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should work now
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is one 50 left
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated
thanks @usersblock |
Test added to test_to_datetime.py to test the conversion to datetime for a series with a float index.