I understand how one might expect x.astype(int) to cast x to an array of Python integers, but NumPy only supports arrays of fixed-width dtype, except for the special case of dtype=object arrays which ...
Casting an array of float64 to int using astype with as argument int will yield the value -2147483648 under windows. Numpy version: 1.19.1 System version: '3.7.6 (default, Jan 8 2020, 20:23:39) [MSC v ...