-
-
Notifications
You must be signed in to change notification settings - Fork 18.1k
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
DEPR: allowing subclass-specific keywords in pd.Index.__new__ #38597
Conversation
@@ -506,7 +506,9 @@ def test_insert_index_period(self, insert, coerced_val, coerced_dtype): | |||
else: | |||
msg = r"Unexpected keyword arguments {'freq'}" | |||
with pytest.raises(TypeError, match=msg): | |||
pd.Index(data, freq="M") | |||
with tm.assert_produces_warning(FutureWarning): | |||
# passing keywords ot pd.Index |
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.
typo in comment
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.
looks good. a testing request and some small comments. ping on green.
can you merge master once more. i realized that the period keyword removal was merged before this |
somethings still failing in precommit |
nice! |
black pandas
git diff upstream/master -u -- "*.py" | flake8 --diff