Created
November 15, 2020 23:17
-
-
Save peacing/917beea0839f450f407013b6728fccc7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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