-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
TST/CLN: some RunTimeWarnings #14057
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
Comments
cc @rkern |
Also since 0.19.0 but still in current master:
|
@Liam3851 you would have to show more information, e.g.
|
Thanks Jeff. I'm still showing with numpy 1.11.2 on Windows 7. Here's pd.show_versions;
|
can you step thru and see exactly where this is coming from? I cannot repro |
Odd. Do you see the error with raw numpy outside pandas?
before the |
actually I can repro only on 2.7 on windows. I think this is a numpy bug actually (if you'd like to search / report if its not there).
In any event, let's up a |
I believe we took care of our warnings a while back so going to close this issue. Should open up separate newer issues if they still exist |
after #13145 some RunTimeWarnings remain in the codebase. We should look at these and silence (using
np.errstate
), or fix if we are testing something odd. (running the full test suite will show these; I have extracted them, some are showing a level too low in the stack).pandas/pandas/tseries/index.py:526: RuntimeWarning: overflow encountered in long_scalars return lambda x: Timestamp(x, freq=self.offset, tz=self.tz)
pandas/pandas/tseries/tests/test_tslib.py:453: RuntimeWarning: overflow encountered in long_scalar self.assertIs(ts.tz_localize(tz, errors='coerce'),
pandas/pandas/core/internals.py:2341: RuntimeWarning: overflow encountered in long_scalar f = lambda x: lib.Timestamp(x, tz=self.values.tz)
pandas/pandas/core/internals.py:4753: ComplexWarning: Casting complex values to real discards the imaginary part nn_at = nn.astype(v.dtype)
pandas/pandas/tests/test_algos.py:735: RuntimeWarning: overflow encountered in long_scalars np.array([pd.Timestamp(d, tz='US/Eastern') for d in dt]),
pandas/pandas/core/ops.py:650: RuntimeWarning: invalid value encountered in double_scalars lambda x: op(x, rvalues))
The text was updated successfully, but these errors were encountered: