PythonPredictions / cobra

A Python package to build predictive linear and logistic regression models focused on performance and interpretation
https://pythonpredictions.github.io/cobra.io
MIT License
30 stars 6 forks source link

deprecated 'inplace' keyword #188

Open patrickleonardy opened 11 months ago

patrickleonardy commented 11 months ago

Bug Report

Bug: The plot_incidence function does not support the inplace argument anymore for the reorder_categories function.

Description

This error is linked to a deprecated keyword. and an easily be fixed

Steps to Reproduce

When running the "tutorial_Cobra_linear_regression" notebook this error occurs

Expected Result

I was expecting that the reordering runs as expected.

Actual Results

TypeError: Categorical.reorder_categories() got an unexpected keyword argument 'inplace'

Screenshot bug

![image](https://github.com/PythonPredictions/cobra/assets/116005033/9b0b0cac-16d1-4b9f-89ef-8df63ec06e03)