Skip to content

BUG: core.util.numba_.py → jit_user_function → using generated_jit → causing Warning #54307

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

Closed
3 tasks done
MichalRIcar opened this issue Jul 29, 2023 · 1 comment
Closed
3 tasks done
Labels
Compat pandas objects compatability with Numpy or Python functions Duplicate Report Duplicate issue or pull request

Comments

@MichalRIcar
Copy link

MichalRIcar commented Jul 29, 2023

Pandas version checks

  • I have checked that this issue has not already been reported.

  • I have confirmed this bug exists on the latest version of pandas.

  • I have confirmed this bug exists on the main branch of pandas.

Reproducible Example

import pandas as pd
import numpy as np

def Numba_avg(X):
    return np.mean(X)
    
D = pd.DataFrame({'X':[i for i in range(100)]})

D.rolling(5, axis=0, method='single').apply(Numba_avg, engine='numba', raw=True)

Issue Description

The function jit_user_function in core.util.numba_.py is using generated_jit function which is in deprecation and thus causing deprecation warning by numba:

"
numba.generated_jit is deprecated. Please see the documentation at: https://numba.readthedocs.io/en/stable/reference/deprecation.html#deprecation-of-generated-jit for more information and advice on a suitable replacement.
"

Expected Behavior

Substitute generated_jit in jit_user_function by adequate recommendation by numba.

Installed Versions

INSTALLED VERSIONS

python : 3.11.3.final.0
python-bits : 64

pandas : 2.0.3
numpy : 1.24.4
numba : 0.57.0

@MichalRIcar MichalRIcar added Bug Needs Triage Issue that has not been reviewed by a pandas team member labels Jul 29, 2023
@MichalRIcar MichalRIcar changed the title BUG: core.util.numba_.py → jit_user_function → using generated_jit → causing Warning: numba.generated_jit is deprecated. Please see the documentation at: https://numba.readthedocs.io/en/stable/reference/deprecation.html#deprecation-of-generated-jit for more information and advice on a suitable replacement. BUG: core.util.numba_.py → jit_user_function → using generated_jit → causing Warning Jul 29, 2023
@lithomas1
Copy link
Member

Duplicate of #53449.

This should be fixed on main.

@lithomas1 lithomas1 added Duplicate Report Duplicate issue or pull request Compat pandas objects compatability with Numpy or Python functions and removed Bug Needs Triage Issue that has not been reviewed by a pandas team member labels Jul 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Compat pandas objects compatability with Numpy or Python functions Duplicate Report Duplicate issue or pull request
Projects
None yet
Development

No branches or pull requests

2 participants