Numeric data types include integers and floats.
If we have an array containing both integers and floating point numbers , numpy will assign the entire array to the float data float , so decimal points will not be lost.
An integer will never have a decimal point. So, for example, 2.55 will be stored as 2
As @unutbu int32 and int64 , depends on the type of bit machines you have, be it a 32-bit machine or a 64-bit machine
Strings are values ββthat contain numbers and / or characters . For example, a string can be a word, sentence, or multiple sentences. The most common dtype=string will be assigned to your array if your array has mixed types (numbers and strings).
For a detailed overview, you can take a look at this scipy docs website.
source share