Skip to content

Commit

Permalink
PERF-#0000: avoid 'columnarize' function call
Browse files Browse the repository at this point in the history
Signed-off-by: Anatoly Myachev <anatoly.myachev@intel.com>
  • Loading branch information
anmyachev committed Nov 5, 2023
1 parent 7a9415e commit 33684aa
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
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 @@ def __init__(
)
)
)._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

0 comments on commit 33684aa

Please sign in to comment.