Skip to main content

Pandas on AWS.

Project description

AWS Data Wrangler

Pandas on AWS

AWS Data Wrangler

An AWS Professional Service open source initiative | aws-proserve-opensource@amazon.com

Release Python Version Code style: black License

Checked with mypy Coverage Static Checking Documentation Status

Source Downloads Installation Command
PyPi PyPI Downloads pip install awswrangler
Conda Conda Downloads conda install -c conda-forge awswrangler

Powered By

Table of contents

Quick Start

Installation command: pip install awswrangler

import awswrangler as wr
import pandas as pd
from datetime import datetime

df = pd.DataFrame({"id": [1, 2], "value": ["foo", "boo"]})

# Storing data on Data Lake
wr.s3.to_parquet(
    df=df,
    path="s3://bucket/dataset/",
    dataset=True,
    database="my_db",
    table="my_table"
)

# Retrieving the data directly from Amazon S3
df = wr.s3.read_parquet("s3://bucket/dataset/", dataset=True)

# Retrieving the data from Amazon Athena
df = wr.athena.read_sql_query("SELECT * FROM my_table", database="my_db")

# Get a Redshift connection from Glue Catalog and retrieving data from Redshift Spectrum
con = wr.redshift.connect("my-glue-connection")
df = wr.redshift.read_sql_query("SELECT * FROM external_schema.my_table", con=con)
con.close()

# Amazon Timestream Write
df = pd.DataFrame({
    "time": [datetime.now(), datetime.now()],   
    "my_dimension": ["foo", "boo"],
    "measure": [1.0, 1.1],
})
rejected_records = wr.timestream.write(df,
    database="sampleDB",
    table="sampleTable",
    time_col="time",
    measure_col="measure",
    dimensions_cols=["my_dimension"],
)

# Amazon Timestream Query
wr.timestream.query("""
SELECT time, measure_value::double, my_dimension
FROM "sampleDB"."sampleTable" ORDER BY time DESC LIMIT 3
""")

Read The Docs

Community Resources

Please send a Pull Request with your resource reference and @githubhandle.

Who uses AWS Data Wrangler?

Knowing which companies are using this library is important to help prioritize the project internally.

Please send a Pull Request with your company name and @githubhandle if you may.

Amazon SageMaker Data Wrangler?

Amazon SageMaker Data Wrangler is a new SageMaker Studio feature that has a similar name but has a different purpose than the AWS Data Wrangler open source project.

  • AWS Data Wrangler is open source, runs anywhere, and is focused on code.

  • Amazon SageMaker Data Wrangler is specific for the SageMaker Studio environment and is focused on a visual interface.

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

awswrangler-2.0.1.tar.gz (120.8 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

awswrangler-2.0.1-py3.6.egg (320.4 kB view details)

Uploaded Egg

awswrangler-2.0.1-py3-none-any.whl (148.2 kB view details)

Uploaded Python 3

File details

Details for the file awswrangler-2.0.1.tar.gz.

File metadata

  • Download URL: awswrangler-2.0.1.tar.gz
  • Upload date:
  • Size: 120.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.6.12

File hashes

Hashes for awswrangler-2.0.1.tar.gz
Algorithm Hash digest
SHA256 fbcf30b6a6154213e1eaad21f34499f0fc41210df2f058c015ed9573f66d3de7
MD5 c2d973b1f4169da557439844f49c2056
BLAKE2b-256 eaf8b44476ad881441e0f6234eaa7c9433768d895f73d39afedec4f43418f419

See more details on using hashes here.

File details

Details for the file awswrangler-2.0.1-py3.6.egg.

File metadata

  • Download URL: awswrangler-2.0.1-py3.6.egg
  • Upload date:
  • Size: 320.4 kB
  • Tags: Egg
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.6.12

File hashes

Hashes for awswrangler-2.0.1-py3.6.egg
Algorithm Hash digest
SHA256 d1735e112cea318eb1105a98b9dcc13f8739860787fb06da4ab4cc1491885e0f
MD5 c928df4badeab1887cd5da86f761cf54
BLAKE2b-256 62dd74625f3d7b7b0e85040d4d82e9620d54c4cec1ddd71af5f789e9f65c939a

See more details on using hashes here.

File details

Details for the file awswrangler-2.0.1-py3-none-any.whl.

File metadata

  • Download URL: awswrangler-2.0.1-py3-none-any.whl
  • Upload date:
  • Size: 148.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.6.12

File hashes

Hashes for awswrangler-2.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c4c00fe4c56d0b00c4d63ad178f4c9615c7e089f9a03966051cb2ff2c451feee
MD5 24db8081a0dabe019284866e42dc6a78
BLAKE2b-256 b76489557734c650ed35946539444269e7881045e95e3d1e95ae3610ef3783cf

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page