fork download
  1. categoria_valor = [
  2. 'R$\xa01.417',
  3. 'R$\xa01.200',
  4. 'R$\xa0185',
  5. 'R$\xa018',
  6. 'R$\xa028',
  7. 'R$\xa02.848']
  8.  
  9. vals= [int(v[3:].replace('.','')) for v in categoria_valor]
  10.  
  11. print(vals)
  12.  
Success #stdin #stdout 0.02s 9288KB
stdin
Standard input is empty
stdout
[1417, 1200, 185, 18, 28, 2848]