Series.str.substring
Obtain the substring of each element in a series
danfo.Series.str.substring(startIndex, endIndex, options) [source]
Parameters
Type
Description
Default
startIndex
Number
specify the index to start obtaining the substring
0
endIndex
Number
specify the index to end the substring
1
options
Object
inplace: Whether to perform the operation in-place or not.
{
inplace: false
}
Returns
**** return Series
Example
Obtain the substring from index 2 to index 4 of the string elements in a Series
Last updated