Series.str.substr
Obtain the substring from a String element in a Series, by specifying the number of string to obtain starting from a specific index.
Last updated
Obtain the substring from a String element in a Series, by specifying the number of string to obtain starting from a specific index.
Last updated
danfo.Series.str.substr(startIndex, num, options) [source]
Parameters | Type | Description | Default |
---|---|---|---|
Returns:
**** return Series
Example
Obtain substring( containing 4 characters) starting from the third character (2nd index).
startIndex
Number
specify the index to start obtaining the substring
0
num
Number
The number of character to obtain starting from the startIndex
1
options
Object
inplace: Whether to perform the operation in-place or not.
{
inplace: false
}