Open mvashishtha opened 1 year ago
update: as of Modin version 2eff03cd7db298ed283c6ff124dd6fbc7515f66c, the behavior is a bit different. We don't get an error immediately, but the internal and external columns are different, so we get downstream errors:
import modin.pandas as pd
s = pd.Series(1)
result = s.compare(s)
# raises IndexError: positional indexers are out-of-bounds
print(result['self'])
The root cause is that this doesn't work when result
is empty: https://github.com/modin-project/modin/blob/2eff03cd7db298ed283c6ff124dd6fbc7515f66c/modin/pandas/series.py#L828
Modin version checks
[X] I have checked that this issue has not already been reported.
[X] I have confirmed this bug exists on the latest released version of Modin.
[X] I have confirmed this bug exists on the main branch of Modin. (In order to do this you can follow this guide.)
Reproducible Example
Issue Description
Getting
ValueError
Expected Behavior
while pandas gives an empty series.
Error Logs
Installed Versions