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