Skip to content

CLN Dont upcast where unnecessary (PDEP6 precursor) #52957

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

Merged
merged 1 commit into from
Apr 27, 2023

Conversation

MarcoGorelli
Copy link
Member

@MarcoGorelli MarcoGorelli commented Apr 27, 2023

precursor to https://github.com/pandas-dev/pandas/pull/50626/files, trying to reduce the diff

there's some example / tests in which upcasting from int to float happens, but where it's not the purpose of what's being shown / tested. similar to #50493

@@ -205,18 +205,24 @@ def use_numexpr(use, min_elements=None) -> Generator[None, None, None]:
set_option("compute.use_numexpr", olduse)


def raises_chained_assignment_error():
if PYPY:
def raises_chained_assignment_error(extra_warnings=(), extra_match=()):
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

here I'm giving raises_chained_assignment_error the ability to catch extra warnings (as this will be used later in #50626)

@MarcoGorelli MarcoGorelli requested a review from phofl April 27, 2023 10:23
@phofl phofl added this to the 2.1 milestone Apr 27, 2023
@phofl phofl merged commit a0b7693 into pandas-dev:main Apr 27, 2023
@phofl
Copy link
Member

phofl commented Apr 27, 2023

thx @MarcoGorelli

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants