bff

All of bff’s functions.

bff.avg_dicts

Average all the values in the given dictionaries.

bff.cast_to_category_pd

Automatically converts columns of pandas DataFrame that are worth stored as category dtype.

bff.concat_with_categories

Concatenation of Pandas DataFrame having categorical columns.

bff.get_peaks

Get the peaks of a time series having datetime as index.

bff.idict

Invert a dictionary.

bff.kwargs_2_list

Convert all single values from keyword arguments into lists.

bff.log_df

Log information on a DataFrame before returning it.

bff.mem_usage_pd

Calculate the memory usage of a pandas object.

bff.normalization_pd

Normalize columns of a pandas DataFrame using the given scaler.

bff.parse_date

Cast str date into datetime format.

bff.pipe_multiprocessing_pd

Compute function on DataFrame with nb_proc processes.

bff.plot.plot_correlation

Plot the correlation between variables of a pandas DataFrame.

bff.plot.plot_counter

Plot the values of a counter as a bar plot.

bff.plot.plot_history

Plot the history of the model trained using Keras.

bff.plot.plot_pca_explained_variance_ratio

Plot the explained variance ratio of PCA.

bff.plot.plot_predictions

Plot the predictions of the model.

bff.plot.plot_series

Plot time series with datetime with the given resample (groupby).

bff.plot.plot_true_vs_pred

Plot the ground truth against the predictions of the model.

bff.plot.set_thousands_separator

Set thousands separator on the axes.

bff.read_sql_by_chunks

Read SQL query by chunks into a DataFrame.

bff.size_2_square

Return the size of the side to create a square able to contain n elements.

bff.sliding_window

Apply a sliding window over the sequence.

bff.value_2_list

Convert a single value into a list with a single value.