string com vírgula para int python

# string with comma to int python

>>> a = '1,000,000'
>>> int(a.replace(',', ''))
1000000
>>>
Repulsive Raven