maxframe.liteframe.LiteFrame.str.repeat#
- LiteFrame.str.repeat(repeats)#
Duplicate each string in the Series or Index.
Duplicates each string in the Series or Index, either by applying the same repeat count to all elements or by using different repeat values for each element.
- Parameters:
repeats (int or sequence of int) – Same value for all (int) or different value per (sequence).
- Returns:
Series or Index of repeated string objects specified by input parameter repeats.
- Return type:
See also
LiteFrame.str.lowerConvert all characters in each string to lowercase.
LiteFrame.str.upperConvert all characters in each string to uppercase.
LiteFrame.str.titleConvert each string to title case (capitalizing the first letter of each word).
LiteFrame.str.stripRemove leading and trailing whitespace from each string.
LiteFrame.str.replaceReplace occurrences of a substring with another substring in each string.
LiteFrame.str.ljustLeft-justify each string in the Series/Index by padding with a specified character.
LiteFrame.str.rjustRight-justify each string in the Series/Index by padding with a specified character.