NumPy has a specialized
chararray object that holds strings. It is a subclass of
ndarray and has special string methods. We will download text from the Python website and use those methods. The advantages of
chararray over a normal array of strings are as follows:
Let's create the character array:
carray = np.array(html).view(np.chararray)
expandtabs()function. This function accepts the tab size as an argument. The value ...