Skip to content

Commit

Permalink
fix lints
Browse files Browse the repository at this point in the history
  • Loading branch information
noloerino committed Jul 22, 2024
1 parent ad02646 commit bbf014e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
9 changes: 9 additions & 0 deletions modin/core/storage_formats/base/query_compiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,15 @@ def default_to_pandas(self, pandas_op, *args, **kwargs) -> Self:

@property
def lazy_shape(self):
"""
Whether either of the underlying dataframe's dimensions (row count/column count) are
computed lazily. If True, the frontend should avoid length/shape checks as much
as possible.
Returns
-------
bool
"""
return self.lazy_row_count or self.lazy_column_count

_shape_hint = None
Expand Down
4 changes: 1 addition & 3 deletions modin/core/storage_formats/pandas/query_compiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -1803,9 +1803,7 @@ def get_unique_level_values(index):
new_index = (
get_unique_level_values(index)
if consider_index
else index
if isinstance(index, list)
else [index]
else index if isinstance(index, list) else [index]
)

new_columns = (
Expand Down

0 comments on commit bbf014e

Please sign in to comment.