awswrangler.dynamodb.put_df

awswrangler.dynamodb.put_df(df: pandas.core.frame.DataFrame, table_name: str, boto3_session: Optional[boto3.session.Session] = None) Any

Write all items from a DataFrame to a DynamoDB.

Note

This function has arguments which can be configured globally through wr.config or environment variables:

Check out the Global Configurations Tutorial for details.

Parameters
Returns

None.

Return type

None

Examples

Writing rows of DataFrame

>>> import awswrangler as wr
>>> import pandas as pd
>>> wr.dynamodb.put_df(
...     df=pd.DataFrame({'key': [1, 2, 3]}),
...     table_name='table'
... )