When using pip uninstall
, you only remove a specific package. Wouldn’t it be nice if you can install that package and its unused dependencies?
That is when pip-autoremove comes in handy.
In the code above, using pip-autoremove removes pandas-profiling and its unused dependencies.