pyspark.pandas.Series.add_suffix#
- Series.add_suffix(suffix)[source]#
- Suffix labels with string suffix. - For Series, the row labels are suffixed. For DataFrame, the column labels are suffixed. - Parameters
- suffixstr
- The string to add after each label. 
 
- Returns
- Series
- New Series with updated labels. 
 
 - See also - Series.add_prefix
- Prefix row labels with string prefix. 
- DataFrame.add_prefix
- Prefix column labels with string prefix. 
- DataFrame.add_suffix
- Suffix column labels with string suffix. 
 - Examples - >>> s = ps.Series([1, 2, 3, 4]) >>> s 0 1 1 2 2 3 3 4 dtype: int64 - >>> s.add_suffix('_item') 0_item 1 1_item 2 2_item 3 3_item 4 dtype: int64