etna.datasets.set_columns_wide#
- set_columns_wide(df_left: DataFrame, df_right: DataFrame, timestamps_left: Sequence[Timestamp | int] | None = None, timestamps_right: Sequence[Timestamp | int] | None = None, segments_left: Sequence[str] | None = None, features_right: Sequence[str] | None = None, features_left: Sequence[str] | None = None, segments_right: Sequence[str] | None = None) DataFrame [source]#
Set columns in a left dataframe with values from the right dataframe.
- Parameters:
df_left (DataFrame) – dataframe to set columns in
df_right (DataFrame) – dataframe to set columns from
timestamps_left (Sequence[Timestamp | int] | None) – timestamps to select in
df_left
timestamps_right (Sequence[Timestamp | int] | None) – timestamps to select in
df_right
segments_left (Sequence[str] | None) – segments to select in
df_left
segments_right (Sequence[str] | None) – segments to select in
df_right
features_left (Sequence[str] | None) – features to select in
df_left
features_right (Sequence[str] | None) – features to select in
df_right
- Returns:
a new dataframe with changed columns
- Return type: