If you doing ML or data science spyder is the better option, you can use R, you can have figures within window and you have easier data viewers. Pycharm is more for programming if you are into something other than data science go for pycharm.
https://www.quora.com/What-are-the-pros-and-cons-of-Spyder-versus-PyCharm-as-Python-IDEs#:~:text=They%20are%20different%20because%20they,with%20ssh%2C%20with%20shell%20console.