Giter Site home page Giter Site logo

dx's Introduction

dx

Binder

A Pythonic Data Explorer.

Install

For Python 3.8+:

pip install dx

Usage

The dx library contains a simple helper function also called dx.

from dx import dx

dx() takes one positional argument, a dataframe.

dx(dataframe)

The dx(dataframe) function will display the dataframe in data explorer mode:

dx in action

Today, a Pandas DataFrame may be passed. In the future, other dataframe types may be supported.

Example

import pandas as pd
from dx import dx


# Get happiness data and create a pandas dataframe
df = pd.read_csv('examples/data/2019.csv')

# Open data explorer with the happiness dataframe
dx(df)

If you only wish to display a certain number of rows from the dataframe, use a context and specify the max rows (if set to None, all rows are used):

# To use the first 13 rows for visualization with dx
with pd.option_context('display.max_rows', 13):
  dx(df)

FAQ

Q: What about Spark?

A: Spark support would be highly welcome!

See improved-spark-viz for the current effort. There's a format that pandas handles for us that we could create in spark land.

Develop

git clone https://github.com/nteract/dx
cd dx
pip install -e .

We currently install jupyter and jupyter_on_nteract packages for ease of running examples.

To run nteract on jupyter:

jupyter nteract

Code of Conduct

We follow the nteract.io code of conduct.

LICENSE

See LICENSE.md.

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.