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
Environment:
This code works in pandas:
import numpy as np import pandas as pd import cudf sample_rate = 256 signal_freq = 40 noise_freq = 50 # Create time vector t = np.linspace(0, 10, sample_rate*10) # Generate sine wave with noise np_signal = np.sin(2*np.pi*signal_freq*t) + np.sin(2*np.pi*noise_freq*t) data = dict(time = pd.date_range('2023-06-17 12:00', '2023-06-17 12:00:10', sample_rate*10), sign = np_signal) test_pandas = pd.DataFrame(data) test_pandas.resample('1s', on='time').mean().head() test_pandas.resample('10ms', on='time').mean().head()
sign time 2023-06-17 12:00:00.000 1.110208 2023-06-17 12:00:00.010 -1.044914 2023-06-17 12:00:00.020 0.899606 2023-06-17 12:00:00.030 -0.168008 2023-06-17 12:00:00.040 -0.025423
meawhile in cudf
test_cuda = cudf.DataFrame(data) test_cuda.resample('1s', on='time').mean().head() test_cuda.resample('10ms', on='time').mean().head()
File copying.pyx:34, in cudf._lib.pylibcudf.copying.gather() File copying.pyx:61, in cudf._lib.pylibcudf.copying.gather() ValueError: CUDF failure at: /opt/conda/conda-bld/work/cpp/src/copying/gather.cu:44: gather_map contains nulls
The text was updated successfully, but these errors were encountered:
Thanks for the report. With #15560, this should hopefully be fixed in the next release
Sorry, something went wrong.
Fix millisecond resampling in cudf Python (#15560)
0935d38
closes #15551 Authors: - Matthew Roeschke (https://github.com/mroeschke) - GALI PREM SAGAR (https://github.com/galipremsagar) Approvers: - https://github.com/brandon-b-miller - GALI PREM SAGAR (https://github.com/galipremsagar) URL: #15560
Successfully merging a pull request may close this issue.
Environment:
This code works in pandas:
meawhile in cudf
The text was updated successfully, but these errors were encountered: