Skip to content

Instantly share code, notes, and snippets.

@peacing
Created November 15, 2020 23:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save peacing/917beea0839f450f407013b6728fccc7 to your computer and use it in GitHub Desktop.
Save peacing/917beea0839f450f407013b6728fccc7 to your computer and use it in GitHub Desktop.
import pandas as pd
import boto3
df = pd.read_csv(file_path)
dynamo = boto3.resource('dynamodb')
table = dynamo.Table('data-services-dev-testing')
with table.batch_writer() as bw:
for i, record in enumerate(df.to_dict("records")):
bw.put_item(Item=record)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment