Have you ever updated a dependency of your project to a new version, and your code suddenly broke? That could be due to the incompatibility of the current dependencies and the new dependency.
Wouldn’t it be nice if you can check the compatibility between dependencies before installing new ones? That is when Poetry comes in handy.
In the code above, since pandas==1.4.1 requires numpy>=1.18.5, numpy<1.18 is not installed.
Another cool thing about Poetry is that when you remove a dependency, it also removes sub-dependencies that are no longer needed in your project.