title: Python: Migration MongoDB to DynamoDB - Float Error
body: <p>I'm starting to use Python in my daily chores, I found a problem I can't solve. With this script, modifying only the name of the collection (MongoDB) and the name of the table (DynamoDB), the whole process runs very well in other collections.</p>
  
  <p>In one collection (example below), the script does not perform so well, because in the collection there is floating data, such as geolocalization data</p>
  
  <pre><code>import sys
  
  # Mongo
  import pprint
  from pymongo import MongoClient
  Client = MongoClient('mongodb://localhost:27017/')
  db = Client["developer"]
  collection = db["geolocation"]
  
  # Dynamo
  import boto3
  dynamodb = boto3.resource('dynamodb')
  table = dynamodb.Table('geolocation')
  
  
  # migrate
  count = 0
  with table.batch_writer() as batch:
      for migrate in collection.find():
          del migrate['__v']
          del migrate['_id']
  
          batch.put_item(Item= migrate)
  
          # To show process
          count += 1
          print(str(collection.count()) + '::' + str(count))
  </code></pre>
  
  <p>The error that occurred is: <strong>float types are not supported. Use Decimal types instead</strong>.</p>
  
  <p>I need to help to create a def that scans the object and replace the value of float to decimals. Can someone help me?</p>