2. dtype¶
Last page update: September 22, 2015
We list here all the datatypes (
dtypes
) you can use for your data. You can also create your own custom type.
2.1. dtypes format¶
2.1.1. A dtype¶
TODO
2.1.2. C dtype¶
Character type.
2.1.3. D dtype¶
Date type. Use the
datetime.date()
Python module syntaxExample:
datetime.date(2011, 10, 10)
2.1.4. DH dtype¶
DateHour type. Use thedatetime.datetime.now()
Python module syntax
2.1.5. H dtype¶
Hour type. Use the
datetime.time()
Python module syntaxExample:
datetime.time(4, 5)
2.1.6. I dtype¶
Integer type.
Example:
1223
2.1.7. L dtype¶
Long integer type
Example:
48205294
2.1.8. R dtype¶
Float number type.
Example:
34567.67
2.1.9. T dtype¶
Text type.
2.1.11. DT dtype¶
The
DT
type is a Genro type. Its format is:yyyy-mm-dd T hh:mm:ss.decimalswhere
yyyy-mm-dd
is the “year-month-day” format date,T
is a separator,hh:mm:ss
is the “hour-minute-second” format hour (followed by the decimals of seconds)
2.2. custom type¶
You can build your own datatype. For more information, check the custom_type() method