-
-
Notifications
You must be signed in to change notification settings - Fork 18.2k
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
REF/TYP: use OpsMixin for DataFrame #37044
Conversation
…py (pandas-dev#37026) Co-authored-by: Rajat Bishnoi <[email protected]>
* CI: unpin sql to verify the bugs pandas-dev#36465 * CI: pin sqlalchemy * CI: pin pymsql * CI: pin sqlalchemy * CI: pin pymysql * CI: pin pymysql * CI: add note
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.
also checks are failing
pandas/core/frame.py
Outdated
@@ -420,6 +421,7 @@ def _constructor(self) -> Type[DataFrame]: | |||
_constructor_sliced: Type[Series] = Series | |||
_deprecations: FrozenSet[str] = NDFrame._deprecations | frozenset([]) | |||
_accessors: Set[str] = {"sparse"} | |||
__hash__ = NDFrame.__hash__ |
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.
was this defined before?
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.
ATM this PR puts OpsMixin ahead of NDFrame in the MRO, which is why this needs to be re-pinned. flipping those should make this unnecessary
wouldn't hurt to merge master |
updated+green |
* REF/TYP: use OpsMixin for arithmetic methods * REF: separate arith_method_FRAME from flex_arith_method_FRAME * whatsnew * REF/TYP: use OpsMixin for logical methods (pandas-dev#36964) * TST: insert 'match' to bare pytest raises in pandas/tests/tools/test_to_datetime.py (pandas-dev#37027) * TST: insert 'match' to bare pytest raises in pandas/tests/test_flags.py (pandas-dev#37026) Co-authored-by: Rajat Bishnoi <[email protected]> * TYP: generic, series, frame (pandas-dev#36989) * CI: pin pymysql pandas-dev#36465 (pandas-dev#36847) * CI: unpin sql to verify the bugs pandas-dev#36465 * CI: pin sqlalchemy * CI: pin pymsql * CI: pin sqlalchemy * CI: pin pymysql * CI: pin pymysql * CI: add note * CLN/REF: de-duplicate DatetimeTZBlock.setitem (pandas-dev#37019) * REF/TYP: define NDFrame numeric methods non-dynamically (pandas-dev#37017) * CLN: require td64 in TimedeltaBlock (pandas-dev#37018) * BUG: Raise ValueError instead of bare Exception in sanitize_array (pandas-dev#35769) * CLN: collected cleanups, warning suppression in tests (pandas-dev#37021) * REF/TYP: use OpsMixin for DataFrame * CLN: remove get_op_name * mypy fixup * de-privatize Co-authored-by: krajatcl <[email protected]> Co-authored-by: Rajat Bishnoi <[email protected]> Co-authored-by: Fangchen Li <[email protected]> Co-authored-by: Micah Smith <[email protected]>
* REF/TYP: use OpsMixin for arithmetic methods * REF: separate arith_method_FRAME from flex_arith_method_FRAME * whatsnew * REF/TYP: use OpsMixin for logical methods (pandas-dev#36964) * TST: insert 'match' to bare pytest raises in pandas/tests/tools/test_to_datetime.py (pandas-dev#37027) * TST: insert 'match' to bare pytest raises in pandas/tests/test_flags.py (pandas-dev#37026) Co-authored-by: Rajat Bishnoi <[email protected]> * TYP: generic, series, frame (pandas-dev#36989) * CI: pin pymysql pandas-dev#36465 (pandas-dev#36847) * CI: unpin sql to verify the bugs pandas-dev#36465 * CI: pin sqlalchemy * CI: pin pymsql * CI: pin sqlalchemy * CI: pin pymysql * CI: pin pymysql * CI: add note * CLN/REF: de-duplicate DatetimeTZBlock.setitem (pandas-dev#37019) * REF/TYP: define NDFrame numeric methods non-dynamically (pandas-dev#37017) * CLN: require td64 in TimedeltaBlock (pandas-dev#37018) * BUG: Raise ValueError instead of bare Exception in sanitize_array (pandas-dev#35769) * CLN: collected cleanups, warning suppression in tests (pandas-dev#37021) * REF/TYP: use OpsMixin for DataFrame * CLN: remove get_op_name * mypy fixup * de-privatize Co-authored-by: krajatcl <[email protected]> Co-authored-by: Rajat Bishnoi <[email protected]> Co-authored-by: Fangchen Li <[email protected]> Co-authored-by: Micah Smith <[email protected]>
black pandas
git diff upstream/master -u -- "*.py" | flake8 --diff
made possible by #36483