-
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-#7157: Make sure quantile
function works with numeric_only=True
#7160
Conversation
return self.__constructor__( | ||
query_compiler=self._query_compiler.quantile_for_list_of_values( | ||
axis = numeric_only_df._get_axis_number(axis) | ||
if isinstance(q, (pandas.Series, np.ndarray, pandas.Index, list, tuple)): |
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.
One of the problems was that in the case of a tuple, the quantile_for_list_of_values
implementation must be used (instead of quantile_for_single_value
).
numeric_only_df = self.drop( | ||
columns=[ | ||
i for i in self.dtypes.index if not is_numeric_dtype(self.dtypes[i]) | ||
] | ||
) |
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.
This is the second problem, due to the fact that we did not drop non numeric columns, internal and external index did not match.
numeric_only=True
case has not been tested before.
…eric_only=True' Signed-off-by: Anatoly Myachev <anatoly.myachev@intel.com>
Co-authored-by: Iaroslav Igoshev <Poolliver868@mail.ru>
Signed-off-by: Anatoly Myachev <anatoly.myachev@intel.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