You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I was trying to horizontally concatenate several DataFrames which contain some overlapping column names, and those overlapping columns would remain unchanged. However, it might be quite useful to have a suffixes argument as e.g DataFrame.merge has in practice, so that could easily add meaningful suffix to distinguish those overlapped columns. And this argument will be used only when axis=1.
While a walkaround for this is: pd.merge(df1, df2, left_index=True, right_index=True), but this cannot be applied in more dfs.
Just found out that this might be similar to #21791 and if this is the arg we want to add, I would be happy to work on this.
When I was trying to horizontally concatenate several DataFrames which contain some overlapping column names, and those overlapping columns would remain unchanged. However, it might be quite useful to have a
suffixes
argument as e.gDataFrame.merge
has in practice, so that could easily add meaningful suffix to distinguish those overlapped columns. And this argument will be used only whenaxis=1
.While a walkaround for this is:
pd.merge(df1, df2, left_index=True, right_index=True)
, but this cannot be applied in more dfs.Just found out that this might be similar to #21791 and if this is the arg we want to add, I would be happy to work on this.
Minimum reproducible code:
The text was updated successfully, but these errors were encountered: