def str_slice(arr, start=None, stop=None, step=None):
 obj = slice(start, stop, step)
 f = (lambda x: x[obj])
 return _na_map(f, arr)

def str_slice ( arr , start = None , stop = None , step = None ) : obj = slice ( start , stop , step ) f = ( lambda x : x [ obj ] ) return _na_map ( f , arr )
slice substrings from each element in the series/index parameters start : int or none stop : int or none step : int or none returns sliced : series/index of objects .