modin.pandas.DataFrame.add_prefix¶
- DataFrame.add_prefix(prefix)[source] (https://github.com/snowflakedb/snowpark-python/blob/v1.17.0/src/snowflake/snowpark/modin/pandas/dataframe.py#L413-L423)¶
Prefix labels with string prefix.
For Series, the row labels are prefixed. For DataFrame, the column labels are prefixed.
- Parameters:
prefix (str) – The string to add before each label.
- Returns:
New Series or DataFrame with updated labels.
- Return type:
See also
Series.add_suffixSuffix row labels with string suffix.
DataFrame.add_suffixSuffix column labels with string suffix.
Examples