-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update README
- Loading branch information
Showing
3 changed files
with
37 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,31 @@ | ||
# histoviewer | ||
Dynamic histograms for pandas DataFrames | ||
## Introduction | ||
Histoviewer is an interactive bokeh application for dynamically viewing histograms and bar charts for a pandas DataFrame input. | ||
|
||
Try out the application here (it may take up to a minute to start the heroku app): | ||
https://histoviewer.herokuapp.com/sample_app | ||
|
||
Play around with the sliders, text inputs, dropdowns, and button widgets to update the data dynamically! | ||
|
||
## Features | ||
Histoviewer uses bokeh widgets to interact with the displayed plots. The column selection dropdown changes the data source to **df[column]**. | ||
|
||
- Continuous variables | ||
- dynamically rebin histogram from 10-100 bins | ||
- dynamically rescale minimum/maximum bounds of histogram | ||
- Categorical variables | ||
- resort by y-axis (descending) or x-axis (alphabetical) | ||
- reindex x-axis to filter categories | ||
|
||
## Getting Started | ||
To use Histoviewer, simply install the required dependencies: | ||
``` | ||
pip install -r requirements.txt | ||
``` | ||
|
||
Then run the following code (in Jupyter notebook) to interact with a pandas DataFrame: | ||
``` | ||
from histoviewer import histoviewer | ||
histoviewer(df) | ||
``` | ||
|
||
For an example of how to run histoviewer from a python 2.7 script, see [sample_app.py](https://github.com/alvinthai/histoviewer/blob/master/sample_app.py). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
bokeh==0.12.14 | ||
numpy==1.14.1 | ||
pandas==0.22.0 | ||
numpy>=1.14.1 | ||
pandas>=0.22.0 |