Skip to content
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

Apps crash with no error messages using pandas 1.2.3 and interpolate(method='quadratic') / Windows 10 #5656

Closed
Shadoward opened this issue Mar 21, 2021 · 2 comments

Comments

@Shadoward
Copy link

Hi all,
The exe created with pyinstaller 4.2 is crashing during the phase of df.interpolate(method='quadratic'). There is no error message. The python version is working fine.

Here the version install to create the exe.

Windows 10
gooey                     1.0.8            py38h885f38d_1    conda-forge
numpy                     1.20.1           py38h0cc643e_0    conda-forge
pandas                    1.2.3            py38h4c96930_0    conda-forge
pyinstaller               4.2              py38hd0d6af5_1    conda-forge
pyinstaller-hooks-contrib 2020.11            pyhd8ed1ab_0    conda-forge
python                    3.8.8           h7840368_0_cpython    conda-forge
scipy                     1.6.1            py38h5f893b4_0    conda-forge
wxpython                  4.1.1            py38heb73c8a_0    conda-forge

Here a more detail code:

    df.set_index('DateTime', inplace=True)
    df['FirstRolling'] = df['A'].rolling(window=100, center=True).mean() # Applying a moving average (1nd smoothing)
    df['FirstRolling'].iloc[0] = df['A'].iloc[0]
    df['FirstRolling'].iloc[-1] = df['A'].iloc[-1]
    df['FirstInterpolate'] = df['FirstRolling'].interpolate(method='quadratic') # Interpolate despike with quadratic function (1st interpolation)
    df['SecondRolling'] = df['FirstInterpolate'].rolling(window=int(100), center=True).mean()  # Applying a moving average (2nd smoothing)
    df['SecondRolling'].iloc[0] = df['FirstInterpolate'].iloc[0]
    df['SecondRolling'].iloc[-1] = df['FirstInterpolate'].iloc[-1]
    df['Final'] = df['SecondRolling'].interpolate(method='quadratic') # Interpolate despike with quadratic function (2st interpolation)
    df.reset_index(inplace=True)
@bwoodsend
Copy link
Member

This was fixed in #5168 so just install the development version:

conda remove pyinstaller
pip install https://github.com/pyinstaller/pyinstaller/archive/develop.zip

Then rebuild but add the --clean option.

@Shadoward
Copy link
Author

Perfect, thanks!
Closing the issue

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 16, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants