Numpy supports strings and array of strings.   It is fixed length.

If you replace an array element with a longer string it truncates it to fit.

Each python character is 4 bytes ( unicode ). So a 40 character element in the array is 160 bytes.

See example from Notebook below.

Leave a Reply