bigframes.streaming.StreamingDataFrame.rename#
- StreamingDataFrame.rename(*args, **kwargs)[source]#
Rename columns.
Dict values must be unique (1-to-1). Labels not contained in a dict will be left as-is. Extra labels listed don’t throw an error.
- Parameters:
columns (Mapping) – Dict-like from old column labels to new column labels.
inplace (bool) – Default False. Whether to modify the StreamingDataFrame rather than creating a new one.
- Returns:
StreamingDataFrame with the renamed axis labels or None if
inplace=True.- Return type:
bigframes.pandas.DataFrame | None
- Raises:
KeyError – If any of the labels is not found.