PyTables User's Guide
previousTable of Contentsnext
Appendix

Appendix A: Supported data types in PyTables

IsDescription subclasses supports a limited set of data types to define the table fields. Such a set is roughly the same than the types supported by the numarray package (see ) in Python, with the exception of the complex datatypes that are not supported yet.

These data types in table columns can be set through the use of the Col class and its descendants (see 4.11.2). You may find useful the table A as a quick reference to the complete set of supported data types in PyTables.

Table A.1: Data types supported by subclasses of IsDescription definitions.
Type CodeDescriptionC TypeSize (in bytes)Python Counterpart
Boolbooleanunsigned char1Boolean
Int88-bit integersigned char1Integer
UInt88-bit unsigned integerunsigned char1Integer
Int1616-bit integershort2Integer
UInt1616-bit unsigned integerunsigned short2Integer
Int32integerint4Integer
UInt32unsigned integerunsigned int4Long
Int6464-bit integerlong long8Long
UInt64unsigned 64-bit integerunsigned long long8Long
Float32single-precision floatfloat4Float
Float64double-precision floatdouble8Float
CharTypearbitrary length stringchar[]*String

previousTable of Contentsnext