Many of the examples of dtype strings in the numpy documentation feature a leading |
character, for example '|S10'
near the top of the structured arrays page in the numpy manual, but neither the structured arrays page nor the data type objects reference seem to explain what this |
means. What does |
mean in this context and where is this documented?
It refers to the byteorder / endianness of the dtype. In particular, the '|' indicates byte order is not applicable, such as with 8 bit numbers.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With