Skip to content

Commit

Permalink
fix more bad replaces
Browse files Browse the repository at this point in the history
  • Loading branch information
noloerino committed Aug 20, 2024
1 parent b5e1593 commit 4429f63
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions modin/pandas/dataframe.py
Original file line number Diff line number Diff line change
Expand Up @@ -794,7 +794,7 @@ def dot(self, other) -> Union[DataFrame, Series]: # noqa: PR01, RT01, D200
)
else:
return self._reduce_dimension(
data=self._query_compiler.dot(
query_compiler=self._query_compiler.dot(
qc, squeeze_self=False, squeeze_other=True
)
)
Expand All @@ -811,7 +811,7 @@ def dot(self, other) -> Union[DataFrame, Series]: # noqa: PR01, RT01, D200
)

return self._reduce_dimension(
data=self._query_compiler.dot(other, squeeze_self=False)
query_compiler=self._query_compiler.dot(other, squeeze_self=False)
)

def eq(
Expand Down Expand Up @@ -1478,7 +1478,7 @@ def unstack(
is_multiindex and is_list_like(level) and len(level) == self.index.nlevels
):
return self._reduce_dimension(
data=self._query_compiler.unstack(level, fill_value)
query_compiler=self._query_compiler.unstack(level, fill_value)
)
else:
return self.__constructor__(
Expand Down Expand Up @@ -2110,7 +2110,7 @@ def stack(
is_multiindex and is_list_like(level) and len(level) == self.columns.nlevels
):
return self._reduce_dimension(
data=self._query_compiler.stack(level, dropna)
query_compiler=self._query_compiler.stack(level, dropna)
)
else:
return self.__constructor__(data=self._query_compiler.stack(level, dropna))
Expand Down
8 changes: 4 additions & 4 deletions modin/pandas/indexing.py
Original file line number Diff line number Diff line change
Expand Up @@ -790,7 +790,7 @@ def _loc(df):
return df

self.df._update_inplace(
new_data=self.df._default_to_pandas(_loc)._query_compiler
new_query_compiler=self.df._default_to_pandas(_loc)._query_compiler
)
return
row_loc, col_loc, ndims = self._parse_row_and_column_locators(key)
Expand All @@ -807,7 +807,7 @@ def _loc(df):
if is_scalar(row_loc) or len(row_loc) == 1:
index = self.qc.index.insert(len(self.qc.index), row_loc)
self.qc = self.qc.reindex(labels=index, axis=0, fill_value=0)
self.df._update_inplace(new_data=self.qc)
self.df._update_inplace(new_query_compiler=self.qc)
self._set_item_existing_loc(row_loc, col_loc, item)
else:
self._set_item_existing_loc(row_loc, col_loc, item)
Expand Down Expand Up @@ -845,7 +845,7 @@ def _setitem_with_new_columns(self, row_loc, col_loc, item):
if not common_label_loc[i]:
columns = columns.insert(len(columns), col_loc[i])
self.qc = self.qc.reindex(labels=columns, axis=1, fill_value=np.nan)
self.df._update_inplace(new_data=self.qc)
self.df._update_inplace(new_query_compiler=self.qc)
self._set_item_existing_loc(row_loc, np.array(col_loc), item)

def _set_item_existing_loc(self, row_loc, col_loc, item):
Expand Down Expand Up @@ -1061,7 +1061,7 @@ def _iloc(df):
return df

self.df._update_inplace(
new_data=self.df._default_to_pandas(_iloc)._query_compiler
new_query_compiler=self.df._default_to_pandas(_iloc)._query_compiler
)
return
row_loc, col_loc, _ = self._parse_row_and_column_locators(key)
Expand Down

0 comments on commit 4429f63

Please sign in to comment.