Giter Site home page Giter Site logo

oem / automat Goto Github PK

View Code? Open in Web Editor NEW
5.0 3.0 1.0 81 KB

Do EDA from the command line. A small tool that helps wrangling tabular data and plays nicely with other command line tools

Dockerfile 5.23% Rust 94.77%
eda cli filter rust data-science data-analysis

automat's Introduction

automat

What is it?

It is a tool to help with initial exploratory data analysis on the command line. It is meant to be used together with all the other great tools available.

Specifically, automat provides following functions to help you wrangle with your data:

  • filter (can filter numerical values)
  • mutate
  • summarize
  • arrange
  • group_by
  • other, SQL-like operations on your tabular data

Why?

Usage

The csv used in all the examples and benchmarks is the worldcitiespop dataset from the Data Science Toolkit.

Filter

Simple filtering:

atm worldcitiespop.csv filter "Population<1000000"

Multiple filter commands can be chained together:

atm worldcitiespop.csv filter "Population<1000000"|atm filter "Longitude<-50"

atm tries to be a good unix citizen. Use it with other commandline tools, like xsv for example:

atm worldcitiespop.csv filter "Population<20"|atm filter "Population>=10"|atm filter "Longitude<-50"|xsv select City,Population|xsv table

Setup

If you have rustup installed on your system you can simply run cargo install automat.

You can also run it via docker.

If you for example have a csv file called worldcitiespop.csv in your local directory:

docker run --rm -v $(PWD):/data oembot/automat ./atm /data/worldcitiespop.csv filter "Population<10"

Benchmarks

The benchmarks have been created with hyperfine.

Now of course keep in mind that these benchmark are not all that useful, especially since they have been measured using time. Which is notoriously coupled to pretty much everything on the machine that is running those benchmarks. It really is just to show a very rough ballpark measurement.

v.0.0.5

Command Mean [s] Min [s] Max [s] Relative
target/release/atm test.csv filter "Population<1000000" 1.352 ± 0.009 1.341 1.366 1.00

v0.0.4

Command Mean [s] Min [s] Max [s] Relative
target/release/atm test.csv filter "Population<1000000" 1.360 ± 0.010 1.346 1.379 1.00

automat's People

Contributors

oem avatar

Stargazers

Alexander Czernay avatar Alisa Dammer avatar Philipp Wallhäuser avatar Tereza Iofciu avatar Daniel Kohlsdorf avatar

Watchers

 avatar James Cloos avatar  avatar

Forkers

jonathanstrong

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.