Skip to content

Commit a2f0e46

Browse files
committed
version update with doc cleanup; sync with pypi version
1 parent b431b66 commit a2f0e46

File tree

4 files changed

+17
-23
lines changed

4 files changed

+17
-23
lines changed

CHANGELOG.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,11 @@ All notable changes will be documented here.
22

33
---
44

5-
## [1.0.0]() - 2022-04-25
5+
## `1.0.2`
6+
_2022-04-25_
7+
### **Fixed**
8+
* Updated minimum `python` version to `3.8` (down from `3.9.6` in 1.0.0)
9+
610
### **Added**
711
* Custom `IPython` formatter for [Noteable](https://app.noteable.io/) environments
812
* Additional data type support for `display()` / `dx()`:

README.md

Lines changed: 10 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,49 +1,39 @@
11
# dx
22

3-
[![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/nteract/dx/main?urlpath=nteract/tree/examples)
4-
53
A Pythonic Data Explorer.
64

75
## Install
86

97
For Python 3.8+:
10-
118
```
12-
pip install dx
9+
pip install dx>=1.0.0
1310
```
1411

1512
## Usage
1613

17-
The `dx` library contains a simple helper function also called `dx`.
14+
The `dx` library allows for enabling/disabling DEX media type visualization with `dx.enable()` and `dx.display(data)` by setting a custom `IPython` formatter.
1815

1916
```python
20-
from dx import dx
21-
```
22-
23-
`dx()` takes one positional argument, a `dataframe`.
17+
import dx
2418

25-
```python
26-
dx.display(dataframe)
19+
dx.enable()
2720
```
2821

29-
The `dx(dataframe)` function will display the dataframe in
30-
[data explorer](https://github.com/nteract/data-explorer) mode:
31-
32-
In the future, other data sources may be supported.
33-
3422
### Example
3523

3624
```python
37-
import dx
3825
import pandas as pd
3926

40-
# Get happiness data and create a pandas dataframe
27+
# load randomized number/bool/string data
4128
df = pd.read_csv('examples/sample_data.csv')
42-
43-
# Open data explorer with the happiness dataframe
4429
dx.display(df)
4530
```
4631

32+
Pass `index=True` to visualize the `.index` values of a dataframe as well as the column/row values:
33+
```python
34+
dx.display(df, index=True)
35+
```
36+
4737
If you only wish to display a certain number of rows from the dataframe, use
4838
a context and specify the max rows (if set to None, all rows are used):
4939

dx/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
from .dx import *
33
from .formatters import *
44

5-
__version__ = "1.0.1"
5+
__version__ = "1.0.2"

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "dx"
3-
version = "1.0.1"
3+
version = "1.0.2"
44
description = "Python wrapper for Data Explorer"
55
authors = ["Dave Shoup <dave.shoup@gmail.com>", "Kyle Kelley <rgbkrk@gmail.com>"]
66
readme = "README.md"

0 commit comments

Comments
 (0)