def str_decode(arr, encoding, errors='strict'):
 if (encoding in _cpython_optimized_decoders):
  f = (lambda x: x.decode(encoding, errors))
 else:
  decoder = codecs.getdecoder(encoding)
  f = (lambda x: decoder(x, errors)[0])
 return _na_map(f, arr)

def str_decode ( arr , encoding , errors = 'strict' ) : if ( encoding in _cpython_optimized_decoders ) : f = ( lambda x : x . decode ( encoding , errors ) ) else : decoder = codecs . getdecoder ( encoding ) f = ( lambda x : decoder ( x , errors ) [ 0 ] ) return _na_map ( f , arr )
decode character string in the series/index using indicated encoding .