dynamo_pandas.serde

class dynamo_pandas.serde.TypeDeserializer

Bases: TypeDeserializer

An 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: TypeSerializer

An 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)}