Skip to main content

Python wrapper for Data Explorer

Project description

dx

A Pythonic Data Explorer.

Install

For Python 3.8+:

pip install dx>=1.0.0

Usage

The dx library allows for enabling/disabling DEX media type visualization with dx.enable() and dx.display(data) by setting a custom IPython formatter.

import dx

dx.enable()

Example

import pandas as pd

# load randomized number/bool/string data
df = pd.read_csv('examples/sample_data.csv')
dx.display(df)

Pass index=True to visualize the .index values of a dataframe as well as the column/row values:

dx.display(df, index=True)

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.display(df)

Develop

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

Code of Conduct

We follow the noteable.io code of conduct.

LICENSE

See LICENSE.md.

Project details


Download files

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

Source Distribution

dx-1.0.2.tar.gz (3.7 kB view hashes)

Uploaded Source

Built Distribution

dx-1.0.2-py3-none-any.whl (4.2 kB view hashes)

Uploaded Python 3

Supported by

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