NumPy のインポートと Amazon Redshift への接続
Amazon Redshift Python コネクタとNumerical Python (NumPy) をインポートするには、次のコマンドを実行します。
import redshift_connector import numpy
AWS認証情報を使用して Amazon Redshift クラスターに接続するには、以下のコマンドを実行します。
conn = redshift_connector.connect( host='examplecluster.abc123xyz789.us-west-1.redshift.amazonaws.com', port=5439, database='dev', user='awsuser', password='my_password' )