We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
pandas
pandarallel
sentiment_df.groupby('scode').parallel_apply(lambda x: x['f'].rolling(window=window_size, min_periods=1).apply(func, raw=True))
AttributeError: 'DataFrameGroupBy' object has no attribute 'parallel_apply' Write here the observed behavior
AttributeError: 'DataFrameGroupBy' object has no attribute 'parallel_apply'
Write here the expected behavior
The text was updated successfully, but these errors were encountered:
Pandaral·lel is looking for a maintainer! If you are interested, please open an GitHub issue.
Sorry, something went wrong.
I typed up the above code example.
import pandas as pd import time from pandarallel import pandarallel import math import numpy as np df_size = int(3e7) df = pd.DataFrame(dict(a=np.random.randint(1, 1000, df_size), b=np.random.rand(df_size))) def func(df): dum = 0 for item in df.b: dum += math.log10(math.sqrt(math.exp(item**2))) return dum / len(df.b) res_parallel = df.groupby("a").parallel_apply(func)
It works just fine for me.
Python: 3.10.13 Pandarallel: 1.6.5 Pandas: 2.1.0
I have the same issue as described above. If I run the example of @shermansiu, I get the error
Python: 3.11.7 Pandarallel: 1.6.5 Pandas: 2.2.2
Any idea on how to fix this issue?
No branches or pull requests
General
Acknowledgement
pandas
without alone (withoutpandarallel
)before writing a new bug report
Bug description
sentiment_df.groupby('scode').parallel_apply(lambda x: x['f'].rolling(window=window_size, min_periods=1).apply(func, raw=True))
Observed behavior
AttributeError: 'DataFrameGroupBy' object has no attribute 'parallel_apply'
Write here the observed behavior
Expected behavior
Write here the expected behavior
Minimal but working code sample to ease bug fix for
pandarallel
teamThe text was updated successfully, but these errors were encountered: