-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
MAINT: Fix issue in StataReader due to upstream changes #35427
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
MAINT: Fix issue in StataReader due to upstream changes #35427
Conversation
adb2604
to
4f6159b
Compare
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.
Thanks @bashtage
109dfb6
to
8141742
Compare
Probably no reason to do this for 1.1.0. Are you OK with waiting for 1.1.1 @simonjayhawkins? |
no problem. |
8141742
to
f004de6
Compare
pandas/tests/window/test_ewm.py
Outdated
@@ -108,7 +108,7 @@ def test_ewma_halflife_without_times(halflife_with_times): | |||
@pytest.mark.parametrize("min_periods", [0, 2]) | |||
def test_ewma_with_times_equal_spacing(halflife_with_times, times, min_periods): | |||
halflife = halflife_with_times | |||
data = np.arange(10) | |||
data = np.arange(10.) |
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.
IIUC you can revert this and just keep this PR scoped to the Stata change. see #35426 (comment)
moving milestone. The Stata tests are no longer failing with Linux py37_np_dev on master so this won't need backport. |
Should we just close this as unneeded? The second fix does appear to be
needed or at least a good idea since assigning Nan to an int array has a
funny smell.
…On Wed, Jul 29, 2020, 11:33 Simon Hawkins ***@***.***> wrote:
moving milestone. The Stata tests are no longer failing with Linux
py37_np_dev on master so this won't need backport.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#35427 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABKTSRJF4NFNURKEPDR4JMDR573I7ANCNFSM4PIUO5VA>
.
|
Thanks. I'm not sure where we are with numpy-dev. We still have 20 fails on master. not sure whether further changes in numpy will resolve these or we still have work to do.
up to you. |
f004de6
to
51ef825
Compare
@simonjayhawkins I reverted the second commit so this just a small, sensible always safe refactor. |
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.
Thanks @bashtage
Avoid creating an array of dtypes to workaround NumPy future change closes pandas-dev#35426
51ef825
to
abac7c9
Compare
Restarted the Travis build, LGTM pending green |
@jbrockmendel green. |
Thanks @bashtage |
Avoid creating an array of dtypes to workaround NumPy future change
closes #35426
black pandas
git diff upstream/master -u -- "*.py" | flake8 --diff