Skip to content

Commit

Permalink
Address comments
Browse files Browse the repository at this point in the history
Signed-off-by: Iaroslav Igoshev <[email protected]>
  • Loading branch information
YarShev committed Mar 15, 2024
1 parent 5eaf5d5 commit 9c8dfd5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
5 changes: 4 additions & 1 deletion modin/core/storage_formats/pandas/query_compiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -1976,7 +1976,10 @@ def astype(self, col_dtypes, errors: str = "raise"):
# other query compilers may not take care of error handling at the API
# layer. This query compiler assumes there won't be any errors due to
# invalid type keys.
return self.__constructor__(self._modin_frame.astype(col_dtypes, errors=errors))
return self.__constructor__(
self._modin_frame.astype(col_dtypes, errors=errors),
shape_hint=self._shape_hint,
)

def infer_objects(self):
return self.__constructor__(self._modin_frame.infer_objects())
Expand Down
1 change: 0 additions & 1 deletion modin/pandas/series.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,6 @@ def __init__(
)
)._query_compiler
self._query_compiler = query_compiler.columnarize()
self._query_compiler._shape_hint = "column"
if name is not None:
self.name = name

Expand Down

0 comments on commit 9c8dfd5

Please sign in to comment.