Parameters:
- formats : str or list of str
The format description, either specified as a string with
comma-separated format descriptions in the form 'f8, i4, S5', or
a list of format description strings in the form
['f8', 'i4', 'S5'].
- names : str or list/tuple of str
The field names, either specified as a comma-separated string in the
form 'col1, col2, col3', or as a list or tuple of strings in the
form ['col1', 'col2', 'col3'].
An empty list can be used, in that case default field names
(‘f0’, ‘f1’, …) are used.
- titles : sequence
Sequence of title strings. An empty list can be used to leave titles
out.
- aligned : bool, optional
If True, align the fields by padding as the C-compiler would.
Default is False.
- byteorder : str, optional
If specified, all the fields will be changed to the
provided byte-order. Otherwise, the default byte-order is
used. For all available string specifiers, see dtype.newbyteorder.
Attributes:
- dtype : dtype
The converted data-type.
Examples
'<i4'
,
'<S5'
],
[],
[])
.
dtype
dtype([('f0', '<f8'), ('f1', '<i4'), ('f2', 'S5')])