Study
NumPy · dtypes
NumPy dtypes (int32, int64, float32, float64, bool), memory per element, casting with astype, and silent integer overflow.
- Every element in an array has the same dtype, and the dtype fixes how many bytes each one takes.
- NumPy integer arrays wrap around on overflow instead of growing like Python ints.