numpy.char.decode()


Advertisements


This function calls numpy.char.decode() decodes the given string using the specified codec.

Live Demo
import numpy as np 

a = np.char.encode('hello', 'cp500') 
print a 
print np.char.decode(a,'cp500')

Its output is as follows −

�����
hello

numpy_string_functions.htm

Advertisements