New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DOC: Confusion about Boolean dtype #23366
Comments
Its confusing, because So the |
@seberg I didn't know about |
Added documentation on boolean type ``b1`` which was previously not mentioned, causing confusion.
Does this mean that the documentation of https://numpy.org/doc/stable/reference/arrays.dtypes.html is incomplete? Since it specifies: "The first character specifies the kind of data and the remaining characters specify the number of bytes per item", which would mean b -> int8 and 1 -> 1 byte. But
Making a PR for this. |
Issue with current documentation:
Page https://numpy.org/doc/stable/reference/arrays.dtypes.html recommends using
?
to declare Boolean dtype andb
for (signed) byte. Page https://numpy.org/doc/stable/reference/arrays.interface.html#arrays-interface recommendsb for Boolean (integer type where all values are only True or False)
.Idea or request for content:
Perhaps
'?' boolean
could be added to https://numpy.org/doc/stable/reference/arrays.interface.html#arrays-interface and meaning ofb
edited?The text was updated successfully, but these errors were encountered: