modin.pandas.DataFrame.add_prefix¶
- DataFrame.add_prefix(prefix, axis=None) DataFrame[source] (https://github.com/snowflakedb/snowpark-python/blob/v1.47.0/.tox/docs/lib/python3.9/site-packages/modin/pandas/dataframe.py#L391-L398)¶
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