-
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
FIX-#1729: Fix incorrect result of Series.dt.components/freq/tz
#1730
FIX-#1729: Fix incorrect result of Series.dt.components/freq/tz
#1730
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1730 +/- ##
==========================================
+ Coverage 78.25% 85.82% +7.57%
==========================================
Files 77 77
Lines 8287 9280 +993
==========================================
+ Hits 6485 7965 +1480
+ Misses 1802 1315 -487
Continue to review full report at Codecov.
|
8ec1cdd
to
c47b83b
Compare
b8a960c
to
a0d31c9
Compare
@prutskov please add test for the failing case. |
@anmyachev Test for dt.components already exists in tests. This test will be passed after #1727 will merged and current branch will be rebased (it was tested locally using fixes from #1727). Is it needed to add test for |
Not for I mean this reproducer: if __name__ == "__main__":
import modin.pandas as pd
import pandas
import numpy as np
data = pd.to_timedelta(np.arange(5), unit="d")
md_series, pd_series = pd.Series(data), pandas.Series(data)
print("pandas:\n", pd_series.dt.components)
print("\nmodin:\n", md_series.dt.components) As I understand, it should fail on master. If so, we need to add test with this reproducer that will fail before your changes and will pass after your changes. About what existed test are you speaking? |
@anmyachev reproducer you mentioned (from #1729) is actually a test case from @prutskov you could add tests where besides checking your results for equality with pandas with |
Ok, I got it. |
a0d31c9
to
bb41034
Compare
@dchigarev, @anmyachev Test was added. |
bb41034
to
61adcda
Compare
Series.dt.components
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Implementation looks good to me, please fix the commit message to pass commitlint.
61adcda
to
d21230b
Compare
bab4271
to
c9129d4
Compare
Series.dt.components
Series.dt.components
c9129d4
to
8a821aa
Compare
Series.dt.components
Series.dt.components/freq/tz
@dchigarev, @devin-petersohn Additional fixes for validating |
eea3c65
to
2658b27
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@prutskov could you also add more dimensional tests at test_dt
, with length about ~128, to data were split in a partitions and we could check that it works correctly in a parallel way?
222c1ef
to
b0c0343
Compare
Data size was increased. Problem in |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Written a suggestion about tz
and freq
implementation above
b0c0343
to
311dd3c
Compare
This was applied. |
Signed-off-by: Alexey Prutskov <alexey.prutskov@intel.com>
311dd3c
to
aeb784a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, assuming that it passes all tests.
@devin-petersohn ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, assuming CI passes. Restarted due to installation issue on one of the workers.
…odin-project#1730) Signed-off-by: Alexey Prutskov <alexey.prutskov@intel.com>
Signed-off-by: Alexey Prutskov alexey.prutskov@intel.com
What do these changes do?
flake8 modin
black --check modin
git commit -s