-
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-#4409: Fix eval_insert
utility that doesn't actually check results of insert
function
#4410
Conversation
Blocked by #4408 |
Codecov Report
@@ Coverage Diff @@
## master #4410 +/- ##
==========================================
+ Coverage 86.82% 89.54% +2.71%
==========================================
Files 222 222
Lines 18038 18038
==========================================
+ Hits 15662 16152 +490
+ Misses 2376 1886 -490
📣 Codecov can now indicate which changes are the most critical in Pull Requests. Learn more |
I believe this should be unblocked now, right? |
Signed-off-by: Anatoly Myachev <anatoliimyachev@mail.com>
Signed-off-by: Anatoly Myachev <anatoliimyachev@mail.com>
Co-authored-by: Rehan Sohail Durrani <rdurrani@berkeley.edu>
Signed-off-by: Anatoly Myachev <anatoliimyachev@mail.com>
Signed-off-by: Anatoly Myachev <anatoliimyachev@mail.com>
Signed-off-by: Anatoly Myachev <anatoliimyachev@mail.com>
eval_insert
utility and fixes for insert
functioneval_insert
utility that doesn't actually check results of insert
function
raise ValueError( | ||
"Length of values ({}) does not match length of index ({})".format( | ||
len(value), len(self.index) | ||
) | ||
) |
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.
In the process of manual testing, I accidentally found a message mismatch in an exception regarding pandas.
@@ -71,6 +71,7 @@ def eval_insert(modin_df, pandas_df, **kwargs): | |||
modin_df, | |||
pandas_df, | |||
operation=lambda df, **kwargs: df.insert(**kwargs), | |||
__inplace__=True, |
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.
Insert function doesn't return anything, so we should explicitly use __inplace__=True
here.
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.
good you found it!
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
eval_insert
util function doesn't actually check results ofinsert
operation #4409docs/development/architecture.rst
is up-to-date