-
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-#4456: fix loc in case when need reindex item #4457
Conversation
Signed-off-by: Anatoly Myachev <anatoliimyachev@mail.com>
Signed-off-by: Anatoly Myachev <anatoliimyachev@mail.com>
Codecov Report
@@ Coverage Diff @@
## master #4457 +/- ##
==========================================
+ Coverage 86.82% 89.15% +2.32%
==========================================
Files 222 222
Lines 18038 18746 +708
==========================================
+ Hits 15662 16713 +1051
+ Misses 2376 2033 -343
📣 Codecov can now indicate which changes are the most critical in Pull Requests. Learn more |
Signed-off-by: Anatoly Myachev <anatoliimyachev@mail.com>
Signed-off-by: Anatoly Myachev <anatoliimyachev@mail.com>
Signed-off-by: Anatoly Myachev <anatoliimyachev@mail.com>
Signed-off-by: Anatoly Myachev <anatoliimyachev@mail.com>
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.
Looks good, left two minor comments (should be the last ones)
@@ -384,6 +402,45 @@ def test_loc(data): | |||
modin_df.loc["NO_EXIST"] | |||
|
|||
|
|||
def test_loc_4456(): |
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.
is there a chance we can set a pair of (value, key) as a test parameter in order to reduce it? for now the test looks a bit complicated
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.
Looks like I've made it a bit easier :)
Signed-off-by: Anatoly Myachev <anatoliimyachev@mail.com>
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.
Just a last comment regarding a test
df_value = pandas.DataFrame(value, index=index, columns=columns) | ||
eval_loc(modin_df, pandas_df, df_value, loc_key) | ||
|
||
# modin DataFrame | ||
mdf_value = pd.DataFrame(df_value) | ||
eval_loc(modin_df, pandas_df, (mdf_value, df_value), loc_key) |
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.
It just seems a bit strange to me that there's no cases for len(key) != len(value)
as it was originally a reproducer one :) For now, it's obvious that the made changes should fix those cases as well, but it could be no longer true as our code-base is constantly changing at high-levels. So I would propose to add these cases as well.
I've rewritten this test in a separate branch so it include all of the cases. You can inspect and cherry-pick it here if you would like: dchigarev@67352aa
Signed-off-by: proxodilka <zeeron209@gmail.com>
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
TeamCity failures are caused by IO-tests failing to read remote files due to connection timeout. It's unrelated to the changes made here.
Signed-off-by: Anatoly Myachev anatoliimyachev@mail.com
What do these changes do?
flake8 modin/ asv_bench/benchmarks scripts/doc_checker.py
black --check modin/ asv_bench/benchmarks scripts/doc_checker.py
git commit -s
docs/development/architecture.rst
is up-to-date