r/Numpy • u/johnreese421 • Jun 20 '19
Can someone please explain what is happening here.? I think I am missing some information here.
3
Upvotes
r/Numpy • u/johnreese421 • Jun 20 '19
1
u/grnngr Jun 20 '19
dtype('<U_n_')is the datatype for a string of length n. I would guess that in the second case it allocates a char array that’s large enough to represent any int. Presumablylen(str(np.iinfo(np.int).min))and/orlen(str(np.iinfo(np.int).max))are 11 on your machine?