-
Notifications
You must be signed in to change notification settings - Fork 653
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
modin 'Series' object has no attribute 'asi8' #4646
Comments
Thanks for opening the issue @meijiu ! I was able to reproduce the bug you've just opened. It looks like |
FWIW Index.asi8 is deprecated in pandas |
@jbrockmendel Correct me if I'm wrong here but it looks like it's still used in DateTimeIndex and a few others in that vein? That's what the change logs say at least. |
DatetimeIndex, TimedeltaIndex, and PeriodIndex will still have .asi8, but pd.Index and the other subclasses will not. I'm just starting to dig into the modin code base, will try to get a handle on what's going on with the arithmetic |
@jbrockmendel is this an issue you're interested in taking? |
Looks like the fundamental problem here is that A hacky-but-feasible solution would be to implement Series.asi8 to return ser.to_numpy().view("i8"). The correct solution is going to have to live upstream, same underlying issue as pandas-dev/pandas#38946 |
Does anyone from @modin-project/modin-contributors @modin-project/modin-core have any thoughts? |
Another option to solve it entirely on modin's end would be for modin's Series to subclass pd.Series. im assuming this was considered and rejected though |
I think we intentionally do not subclass pandas objects, as it would lead to passing As for this case - we can try to subclass |
This is ostensibly supported but really not advisable pandas-dev/pandas#45289 |
@vnlitvinov @jbrockmendel do either of you want to take on this issue? |
can you expand on this? |
Another option would be to set define |
@jbrockmendel @vnlitvinov do either of you have the bandwidth to make a PR for this? |
Will be addressable following pandas-dev/pandas#48347 |
This should now be addressable by implementing |
Adding |
System information
OS X 11.6.4
Modin version '0.15.2'
Python 3.9.12
Describe the problem
Subtracting a
DatetimeIndex
and a modin Series fails since modin Series doesn't haveasi8
attribute.Source code / logs
The text was updated successfully, but these errors were encountered: