Skip to content

REF: pass str_rep through arithmetic ops more consistently #31297

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 8 commits into from
Feb 23, 2020

Conversation

jbrockmendel
Copy link
Member

This doesn't get all of the places where we fail to pass str_rep, still working out a couple of places where passing it breaks tests.

@pep8speaks
Copy link

pep8speaks commented Jan 24, 2020

Hello @jbrockmendel! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:

There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻

Comment last updated at 2020-02-22 15:50:32 UTC

@gfyoung gfyoung added Refactor Internal refactoring of code Algos Non-arithmetic algos: value_counts, factorize, sorting, isin, clip, shift, diff labels Jan 25, 2020
@@ -748,7 +748,7 @@ def f(self, other, axis=default_axis, level=None):
return _combine_series_frame(self, other, op, axis=axis)
else:
# in this case we always have `np.ndim(other) == 0`
Copy link
Contributor

Choose a reason for hiding this comment

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

see my comment on your other PR. I would rather not do this as another arg, better is to create a NamedTuple that holds both and pass that around

Copy link
Member Author

Choose a reason for hiding this comment

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

another alternative would be to make the getting of str_rep a dict lookup in expressions

@jbrockmendel
Copy link
Member Author

closing to clear the queue

@jbrockmendel jbrockmendel reopened this Feb 12, 2020
@jbrockmendel
Copy link
Member Author

re-opening, this is a step on the path to doing frame-with-frame ops blockwise

@jbrockmendel jbrockmendel added expressions pd.eval, query Numeric Operations Arithmetic, Comparison, and Logical operations and removed Algos Non-arithmetic algos: value_counts, factorize, sorting, isin, clip, shift, diff Refactor Internal refactoring of code labels Feb 19, 2020
@jreback jreback added this to the 1.1 milestone Feb 22, 2020
@jreback
Copy link
Contributor

jreback commented Feb 22, 2020

lgtm. rebase ping on green.

@jbrockmendel
Copy link
Member Author

rebased+green

@jreback jreback merged commit df49f53 into pandas-dev:master Feb 23, 2020
@jreback
Copy link
Contributor

jreback commented Feb 23, 2020

thanks

@jbrockmendel jbrockmendel deleted the ref-pass_str_rep branch February 23, 2020 17:13
roberthdevries pushed a commit to roberthdevries/pandas that referenced this pull request Mar 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
expressions pd.eval, query Numeric Operations Arithmetic, Comparison, and Logical operations
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants