Skip to content

Commit

Permalink
PERF-#6712: Copy '_shape_hint' in 'query_complier.copy' function
Browse files Browse the repository at this point in the history
Signed-off-by: Anatoly Myachev <[email protected]>
  • Loading branch information
anmyachev committed Nov 6, 2023
1 parent 0c68d9f commit 6e6b158
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modin/core/storage_formats/pandas/query_compiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ def add_suffix(self, suffix, axis=1):
# copies if we end up modifying something here. We copy all of the metadata
# to prevent that.
def copy(self):
return self.__constructor__(self._modin_frame.copy())
return self.__constructor__(self._modin_frame.copy(), self._shape_hint)

# END Copy

Expand Down

0 comments on commit 6e6b158

Please sign in to comment.