PyCharm - TypeError: set_ticks() got an unexpected keyword argument 'labels'

Solution 1:

There is no need to update matplotlib version if you are using version of matplotlib 3.4.3.

Here is the link for matplotlib 3.4.3 documentation and avoid using labels keyword in ax.set_xticks() function as said by JohnC