Skip to content

kongrawd/python-pandas-bedrock

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pandas_bedrock

GitHub Repo stars

This is a simple package to help you get started with pandas and data analysis. It is designed to be used with the Amazon Bedrock SDK.

Tested with Foundation Models on Amazon Bedrock

The following Foundation Models have been tested with this package:

Provider Model Name Model ID
Anthropic Claude anthropic.claude-v2:1

Usage

The modules is a Amazon Bedrock wrapper for Pandas dataframes and requires AWS credentials, ensure your AWS credentials are properly configured in your environment settings. The expenses incurred by running the model are charged to your AWS account.

import pandas
import pandas_bedrock

client = pandas_bedrock.Client(model="anthropic.claude-v2:1", region_name  = "us-east-1", profile_name = "your_aws_profile")

df = pandas.DataFrame({
    'Name': ['Scooby Doo', 'Lassie', 'Snoopy', 'Pluto', 'Santa’s Little Helper'],
    'Breed': ['Great Dane', 'Collie', 'Beagle', 'Mixed', 'Greyhound'],
    'Show': ['Scooby-Doo', 'Lassie', 'Peanuts', 'Disney', 'The Simpsons']
})

client.ask('What show is Snoopy from?', df)

Disclaimers

This package is provided 'as is' and does not carry official support from any recognized entities. While there is no guarantee that it will be compatible with all Foundation Models, your contributions are highly encouraged! For additional information, please consult the Amazon Bedrock SDK documentation. Trademarks, such as company names, product names, and logos, belong to their respective owners.

About

Integrate Amazon Bedrock functionality with Pandas in Python.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages