Coder Social home page Coder Social logo

coiled-datasets's Introduction

coiled-datasets

This repo provides easy access to three types of data:

  • open source datasets hosted in S3
  • scripts to create datasets on your local machine
  • some tiny datasets that are checked into this repo

These datasets are great for learning, experimentation, and benchmarking.

S3 datasets

Coiled hosts several public datasets in AWS S3 that you can easily query when experimenting with Dask.

Here's an example code snippet that creates a DataFrame with 662 million rows of data:

ddf = dd.read_parquet(
    "s3://coiled-datasets/timeseries/20-years/parquet",
    storage_options={"anon": True, "use_ssl": True}
)

These easily accessible datasets make it a lot easier for you to run Dask analyses and perform benchmarking analyses.

Here are some key facts on the datasets:

timeseries

The timeseries datasets are created with dask.datasets.timeseries and have the following schema:

id        int64
name     object
x       float64
y       float64

timeseries/20-years/parquet

  • Description: Data from 2000 to 2021 with one row every second
  • Uncompressed size: 58.2 GB
  • Compressed size: 16.7 GB
  • Number files: 1,097
  • Number rows: 662,256,000

Arcos Opioid Sales Dataset

Here's an example code snippet that creates a Dask DataFrame by reading in the entire Parquet file from the coiled-datasets S3 bucket:

# download data from S3
data = dd.read_parquet(
    "s3://coiled-datasets/dea-opioid/arcos_washpost_comp.parquet",
    compression="lz4",
    storage_options={"anon": True},
)

Why use these datasets

A lot of open source datasets aren't easily accessible. You need to download them from a website which can be slow.

Some datasets are stored in inefficient file formats like CSV. They're not stored in Parquet files that have schema metadata information and allow for performance enhancements like column pruning.

Some open source datasets are also messy, so you need to clean the data before performing your analysis. Suppose you'd like to try out a new machine learning model on a large dataset. You may not want to perform hours cleaning up the data if your end goal is to experiment with some models.

Localhost datasets

This repo also has scripts for you to create example datasets on your local machine.

See the create-scripts directory.

For example, you can run python create-scripts/timeseries.py to create some of the timeseries datasets on your local machine. They'll be written in the ~/data directory.

coiled-datasets's People

Contributors

mrpowers avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.