Skip to content
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

PERF-#0000: avoid columnarize function call #6711

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions modin/core/storage_formats/base/query_compiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,7 @@ def default_to_pandas(self, pandas_op, *args, **kwargs):

lazy_execution = False
_shape_hint = None
_columnarize_if_needed = None

# Metadata modification abstract methods
def add_prefix(self, prefix, axis=1):
Expand Down
5 changes: 4 additions & 1 deletion modin/pandas/series.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,10 @@
)
)
)._query_compiler
self._query_compiler = query_compiler.columnarize()
if query_compiler._columnarize_if_needed:
self._query_compiler = query_compiler.columnarize()

Check warning on line 141 in modin/pandas/series.py

View check run for this annotation

Codecov / codecov/patch

modin/pandas/series.py#L141

Added line #L141 was not covered by tests
else:
self._query_compiler = query_compiler
if name is not None:
self.name = name

Expand Down