Best Fancy Functions, your Best Friend Forever
Project description
bff
Best Fancy Functions, your Best Friend Forever
This package contains some utility functions from plots to data manipulations and could become your new bff.
Installation
pip install bff
Documentation
Available here.
Development setup
git clone https://github.com/axelfahy/bff.git
cd bff
python -m venv venv-dev
source venv-dev/bin/activate
pip install -r requirements_dev.txt
pip install -e .
Tests
make all
To test plots, images with baseline should be placed in tests/baseline and can be generated using make build-baseline.
As of v0.2, plots are not yet tested in the travis build.
Release History
- 0.2.7
- ADD: Function
plot_pieto plot counter as a pie chart. - ADD: Function
plot_confusion_matrixto calculate and plot a confusion matrix. - ADD: Function
plot_tsneto plot t-SNE results.
- ADD: Function
- 0.2.6
- CHANGE: Use of
Optionalkeyword fromtypingfor optional arguments. - ADD: Function
plot_pca_explained_variance_ratioto plot the explained variance of PCA. - ADD: Function
pipe_multiprocessing_pdto apply a function on a DataFrame using multiple processes. - ADD: Function
_check_sklearn_supportto check ifscikit-learnis installed instead of having it in the dependencies of the project.
- CHANGE: Use of
- 0.2.5
- ADD: Function
log_dfto print function results during method chaining. - ADD: Function
avg_dictsto make the average of multiple similar dictionaries. - ADD: Function
size_2_squareto calculate the square needed for the given size (e.g. in subplots). - ADD: Option
with_identityto plot an identity line in theplot_true_vs_predfunction. - ADD: Option
with_determinationto plot the coefficient of determination in theplot_true_vs_predfunction. - CHANGE: Default value of option
detailsinmem_usage_pdfunction is nowTrue.
- ADD: Function
- 0.2.4
- ADD: Function
set_thousands_separatorto add a thousand separator and set the number of decimals on x and/or y ticks. - ADD: Option to define x-axis in
plot_predictionsfunction. - FIX: Cast columns to string in
normalization_pdfunction. - FIX: Add possibility to define custom label in
plot_seriesfunction using the kwargs instead of an argument.
- ADD: Function
- 0.2.3
- ADD: Function
normalization_pdto normalize a DataFrame. - ADD: Function
plot_correlationto plot the correlation of variables in a DataFrame.
- ADD: Function
- 0.2.2
- FIX: Function
value_2_listrenamed tokwargs_2_list. - ADD: Function
value_2_listto cast a single value.
- FIX: Function
- 0.2.1
- ADD: Function
plot_counterto plot counter as bar plot.
- ADD: Function
- 0.2.0
- ADD: Separation of plots in submodule
plot. This breaks the previous API. - ADD: Tests for the plot module using
pytest-mlp. - ADD: Images from plot in the documentation and notebook with examples.
- FIX: Correction of resampling in the
plot_seriesfunction.
- ADD: Separation of plots in submodule
- 0.1.9
- ADD: Option
locinplot_seriesfunction. - ADD: Function
cast_to_category_pdto cast columns to categorydtypeautomatically.
- ADD: Option
- 0.1.8
- ADD: Option
with_missing_datetimesinplot_seriesfunction. - ADD: Mypy for type verification.
- FIX: Tests when raising exceptions in
sliding_windowfunction.
- ADD: Option
- 0.1.7
- ADD:
FancyConfigto handle configuration files.
- ADD:
- 0.1.6
- FIX: Correction of dependencies for doc.
- 0.1.5
- ADD: Documentation of project on Read the Docs.
- 0.1.4
- ADD: Function
mem_usage_pdto calculate the memory usage of a pandas object. - ADD: Function
idictto invert the key / values of a dictionary. - ADD: Add Makefile for testing code and style.
- ADD: Add python-versioneer to handle version of package.
- ADD: Function
- 0.1.3
- ADD: Travis, flake8, coveralls and PyUp configurations.
- ADD: Function
get_peaksto get the peaks of a time series. - ADD: Function
plot_seriesto plot a time series. - CHANGE: Restructuration of repo.
- 0.1.2
- ADD: Function
plot_predictionsfunction to plot the actual values and the predictions of a model. - CHANGE: Add axes in plot functions.
- ADD: Function
- 0.1.1
- ADD: Readme with instructions.
- CHANGE: Improvement of
plot_historyfunction. - FIX: Fix the imports in the test.
- 0.1.0
- Initial release.
Meta
Axel Fahy – axel@fahy.net
Distributed under the MIT license. See LICENSE for more information.
Contributing
- Fork it (https://github.com/yourname/yourproject/fork)
- Create your feature branch (
git checkout -b feature/fooBar) - Commit your changes (
git commit -am 'Add some fooBar') - Push to the branch (
git push origin feature/fooBar) - Create a new Pull Request
Version number
The version of the package is link to the tag pushed.
To set a new version:
git tag v0.1.4
git push --tags
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
bff-0.2.7.tar.gz
(43.4 kB
view details)
File details
Details for the file bff-0.2.7.tar.gz.
File metadata
- Download URL: bff-0.2.7.tar.gz
- Upload date:
- Size: 43.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e5e648ea092de8002a80de03df7c44a4f9668401cacb0438b35314f5ef89a510
|
|
| MD5 |
07c5530d62827e40ba008d2fa89e0996
|
|
| BLAKE2b-256 |
28cb6cf98534ff7628d64ec849703309fcc2e7070fb36469df734817e9275af8
|