Python数据分析系列
参考A: numpy数据类型
| 类型 | 类型代码 | 说明 | 字节数 |
|---|---|---|---|
| in8, uint8 | i1, u1 | 有符号, 无符号8位整数 | 1 |
| int16, uint16 | i2, u2 | 有符号, 无符号16位整数 | 2 |
| int32, uint32 | i4, u4 | 有符号, 无符号32位整数 | 4 |
| int64, uint64 | i8, u8 | 有符号, 无符号64位整数 | 8 |
| float16 | f2 | 半精度浮点数 | 2 |
| float32 | f4, f | 标准的单精度浮点数, 与c的float兼容 | 4 |
| float64 | f8, d | 标准的双精度浮点数, 与c的double和python的float对象兼容 | 8 |
| float128 | f16, g | 扩展精度浮点数 | 16 |
| complex64, complex128, complex256 | c8, c16,c32 | 32位, 64位, 128位复数 | 8, 16, 32 |
| object | O | python对象 | 8 |
| string_ | S | 固定长度字符串, S10表示长度为10的字符串 (ansi字符串) | 1 |
| unicode_ | U | 固定长度unicode字符串 U10表示长度为10的字符串 (多字节字符串) | 1-4 |
来源:CSDN
作者:序日新说
链接:https://blog.csdn.net/weixin_44221705/article/details/103639982