Skip to content

Commit df5ff15

Browse files
authored
Update README.md
add copy-pastable usage example
1 parent 363eeae commit df5ff15

1 file changed

Lines changed: 16 additions & 1 deletion

File tree

README.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,22 @@ pip install .
5454

5555
## Usage
5656

57-
Please refer to the [documentation](https://acclab.github.io/DABEST-python-docs).
57+
```python3
58+
import pandas as pd
59+
import dabest
60+
61+
# Load the iris dataset. Requires internet access.
62+
iris = pd.read_csv("https://github.com/mwaskom/seaborn-data/raw/master/iris.csv")
63+
64+
# Load the above data into `dabest`.
65+
iris_dabest = dabest.load(data=iris, x="species", y="petal_width",
66+
idx=("setosa", "versicolor", "virginica"))
67+
68+
# Produce a Cumming estimation plot.
69+
iris_dabest.mean_diff.plot();
70+
```
71+
72+
Please refer to the official [tutorial](https://acclab.github.io/DABEST-python-docs/tutorial.html) for more useful code snippets.
5873

5974

6075
## How to cite

0 commit comments

Comments
 (0)