You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The result is that if a np.float64 seeps into my data, the stock round produces unexpected results: round(x) can be an integer or a float depending on whether x is a regular float or a np.float64.
>>> [type(round(t(1))).__name__ for t in [float, np.float16, np.float32, np.float64, np.float128]]
['int', 'float16', 'float32', 'float64', 'float128']
The distinction does matter, e.g., np.partition raises TypeError: Partition index must be integer.