Skip to content

Commit

Permalink
Use pandas API and formatted code
Browse files Browse the repository at this point in the history
Signed-off-by: JignyasAnand <[email protected]>
  • Loading branch information
JignyasAnand committed Nov 30, 2023
1 parent bd01d93 commit 9bfc4e7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modin/core/dataframe/pandas/dataframe/dataframe.py
Original file line number Diff line number Diff line change
Expand Up @@ -1960,7 +1960,8 @@ def _compute_tree_reduce_metadata(self, axis, new_parts, dtypes=None):
dtypes = self.copy_dtypes_cache()
elif dtypes is not None:
dtypes = pandas.Series(
[pandas.api.types.pandas_dtype(dtypes)] * len(new_axes[1]), index=new_axes[1]
[pandas.api.types.pandas_dtype(dtypes)] * len(new_axes[1]),
index=new_axes[1],
)

result = self.__constructor__(
Expand Down

0 comments on commit 9bfc4e7

Please sign in to comment.