modin.pandas.Series.add_prefix¶
- Series.add_prefix(prefix, axis=None) Union[DataFrame, Series][source]¶
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