human
Python parse comma-separated number into int
assistant
Here is some code to parse a comma-separated string number '1,000,000' into int

int('1,000,000'.replace(',', ''))

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.