-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
PEP: pandas/core round 5 (nanops, ops, panel*) #12079
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
@@ -400,7 +398,7 @@ def nanvar(values, axis=None, skipna=True, ddof=1): | |||
avg = _ensure_numeric(values.sum(axis=axis, dtype=np.float64)) / count | |||
if axis is not None: | |||
avg = np.expand_dims(avg, axis) | |||
sqr = _ensure_numeric((avg - values) ** 2) | |||
sqr = _ensure_numeric((avg - values)**2) |
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.
We don't need spaces around this operator?
Looks good, but:
|
Well this is fun:
|
that's pretty old file. how did that slip in? |
I was just doing that to show no local changes. Seems in pep8 version 1.6 they no longer enforce whitespace around the operator. I'm using 1.6.2. |
@rockg that's super fun! for the preservation of our sanity let's settle on the >= 1.6 behavior; |
thank you! |
No description provided.