Skip to content

Commit

Permalink
REFACTOR-#5467: remove FutureWarning for df.iloc[:, i] = newvals (#…
Browse files Browse the repository at this point in the history
…5468)

Signed-off-by: Anatoly Myachev <anatoly.myachev@intel.com>
  • Loading branch information
anmyachev authored Dec 24, 2022
1 parent b8b58cc commit 5ebbac6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modin/core/dataframe/pandas/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def concatenate(dfs):
columns = [df.iloc[:, i] for df in dfs]
union = union_categoricals(columns)
for df in dfs:
df.iloc[:, i] = pandas.Categorical(
df.iloc[:, i], categories=union.categories
df.isetitem(
i, pandas.Categorical(df.iloc[:, i], categories=union.categories)
)
return pandas.concat(dfs)

0 comments on commit 5ebbac6

Please sign in to comment.