How can I disable Python warnings?

I am working on a Python project, and I keep getting a lot of warnings that are not critical for the functionality of my code. However, they clutter my console output and make it hard to read.

I want to disable these warnings so that they don’t show up in the console. Can anyone suggest how to do this?

Any help would be appreciated. Thank you!