Saving this as note-to-self; The Numpy documentation is thorough but unfriendly for rapid scanning. Here's a cheat-sheet for Linux x86-64.
- (
BHIL)bhil:(u)int-8,16,32,64 efdg:float-16,32,64,80FDG:complex 2×(32,64,80)?: BooleanS#/U#: Length-#byte/Unicode strings- On Intel x86-64 the signed/unsigned pointer-length types
intpp/uintpPareint64/uint64, as arelonglongq/ulonglongQ. - All types are little-endian
<by default (prefix>to specify big-endian) - Types can be suffixed by an integer to specify vector-types
You have unsigned Bytes, sHorts, Integers, and Longs (lower-case bhil for signed); There's floats, doubles, and giant-floats; Half-floats e come before f and are great for saving data. The upper-case FEG are complex types (twice as big). Booleans ? what? Byte Strings and Unicode strings are nice. You may see datetiMe64 and tim edelta in dataframes. Use object when you can't be bothered with typing, and don't worry about Void.
Type aliases
int8bytebint16shorthint32intciint64int_luint8ubyteBuint16ushortHuint32uintcIuint64uintLfloat16halfefloat32singleffloat64float_doubledfloat128longfloatlongdoubleg(actually 80 bit)complex64csinglesinglecomplexFcomplex128complex_cfloatcdoubleDcomplex256clongdoublelongcomplexclongfloatG(actually 2×80 bit)bool8bool_?datetime64Mtimedelta64mobject_ostring_bytes_Sunicode_str_UvoidVulonglongQisuint64longlongqisint64intppisint64uintpPisuint64
No comments:
Post a Comment