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
BUG: numpy.full does not fill all types of data #5972
Comments
Yes.
works, but it cannot create an object array filled with an empty list. Looking at the docstring for |
Broadcasting of the fill value is also untested, so seems unintentional. |
Also, with I wonder if there is functionality that can be added to fill/full that would avoid extra code like |
Might be wrong, but I think one can achieve that with: |
|
doesnt work
v= numpy.full(shape, [], dtype='object')
works
v=numpy.empty(shape, dtype='object')
v.fill([])
The text was updated successfully, but these errors were encountered: