Package: bff
Installation|DocumentationbffBest Fancy Functions, your Best Friend ForeverThis package contains some utility functions from plots to data manipulations and could become your new bff.InstallationpipinstallbffDocumentationAvailablehere.Development setupgitclonehttps://github.com/axelfahy/bff.gitcdbff
python-mvenvvenv-devsourcevenv-dev/bin/activate
pipinstall-rrequirements_dev.txt
pipinstall-e.TestsmakeallTo test plots, images with baseline should be placed intests/baselineand can be generated usingmake build-baseline.As ofv0.2, plots are not yet tested in the travis build.Release History0.2.7ADD: Functionplot_pieto plot counter as a pie chart.ADD: Functionplot_confusion_matrixto calculate and plot a confusion matrix.ADD: Functionplot_tsneto plot t-SNE results.0.2.6CHANGE: Use ofOptionalkeyword fromtypingfor optional arguments.ADD: Functionplot_pca_explained_variance_ratioto plot the explained variance of PCA.ADD: Functionpipe_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.0.2.5ADD: Functionlog_dfto print function results during method chaining.ADD: Functionavg_dictsto make the average of multiple similar dictionaries.ADD: Functionsize_2_squareto calculate the square needed for the given size (e.g. in subplots).ADD: Optionwith_identityto plot an identity line in theplot_true_vs_predfunction.ADD: Optionwith_determinationto plot the coefficient of determination in theplot_true_vs_predfunction.CHANGE: Default value of optiondetailsinmem_usage_pdfunction is nowTrue.0.2.4ADD: Functionset_thousands_separatorto add a thousand separator and set the number of decimals on x and/or y ticks.ADD: Option to define x-axis inplot_predictionsfunction.FIX: Cast columns to string innormalization_pdfunction.FIX: Add possibility to define custom label inplot_seriesfunction using the kwargs instead of an argument.0.2.3ADD: Functionnormalization_pdto normalize a DataFrame.ADD: Functionplot_correlationto plot the correlation of variables in a DataFrame.0.2.2FIX: Functionvalue_2_listrenamed tokwargs_2_list.ADD: Functionvalue_2_listto cast a single value.0.2.1ADD: Functionplot_counterto plot counter as bar plot.0.2.0ADD: Separation of plots in submoduleplot. This breaks the previous API.ADD: Tests for the plot module usingpytest-mlp.ADD: Images from plot in the documentation and notebook with examples.FIX: Correction of resampling in theplot_seriesfunction.0.1.9ADD: Optionlocinplot_seriesfunction.ADD: Functioncast_to_category_pdto cast columns to categorydtypeautomatically.0.1.8ADD: Optionwith_missing_datetimesinplot_seriesfunction.ADD: Mypy for type verification.FIX: Tests when raising exceptions insliding_windowfunction.0.1.7ADD:FancyConfigto handle configuration files.0.1.6FIX: Correction of dependencies for doc.0.1.5ADD: Documentation of project on Read the Docs.0.1.4ADD: Functionmem_usage_pdto calculate the memory usage of a pandas object.ADD: Functionidictto invert the key / values of a dictionary.ADD: Add Makefile for testing code and style.ADD: Add python-versioneer to handle version of package.0.1.3ADD: Travis, flake8, coveralls and PyUp configurations.ADD: Functionget_peaksto get the peaks of a time series.ADD: Functionplot_seriesto plot a time series.CHANGE: Restructuration of repo.0.1.2ADD: Functionplot_predictionsfunction to plot the actual values and the predictions of a model.CHANGE: Add axes in plot functions.0.1.1ADD: Readme with instructions.CHANGE: Improvement ofplot_historyfunction.FIX: Fix the imports in the test.0.1.0Initial release.MetaAxel Fahy –axel@fahy.netDistributed under the MIT license. SeeLICENSEfor more information.https://github.com/axelfahyContributingFork 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 RequestVersion numberThe version of the package is link to the tag pushed.To set a new version:gittagv0.1.4
gitpush--tags