dynamo_pandas.serde¶
-
class
dynamo_pandas.serde.TypeDeserializer¶ Bases:
boto3.dynamodb.types.TypeDeserializerAn extension of the boto3.dynamodb.types.TypeDeserializer class with conversion of numbers to float and int types instead of Decimal.
Differences in type conversion from the parent class are the following:
DynamoDB Python -------- ------ {'N': str(value)} int/float
-
class
dynamo_pandas.serde.TypeSerializer¶ Bases:
boto3.dynamodb.types.TypeSerializerAn extension of the boto3.dynamodb.types.TypeSerializer class with support for pandas data types.
Differences in type conversion from the parent class are the following:
Python DynamoDB ------ -------- numpy.nan, pandas.NA {'NULL': True} int, numpy.integer {'N': str(value)} float, numpy.floating {'N': str(value)} pandas nullable Int64(32, 16, 8) {'N': str(value)} pandas.Timestamp {'S': str(value)} pandas.Timedelta {'S': str(value)}