Skip to content

Instantly share code, notes, and snippets.

@jorgezanguettin
Created April 14, 2021 20:55
Show Gist options
  • Save jorgezanguettin/b104c09976cb4c8aeb7259fe79998c17 to your computer and use it in GitHub Desktop.
Save jorgezanguettin/b104c09976cb4c8aeb7259fe79998c17 to your computer and use it in GitHub Desktop.
tratamento_dados
def tratamento_dados(dadoObtido, tipoString):
if tipoString == 'Preco':
return str(dadoObtido).replace('R$','').strip()
else:
return str(dadoObtido).replace(';',',').strip()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment