-2
import pandas as pd
df = pd.read_fwf(r'C:\Users\gabri\Downloads/tokens-padrao.txt')
gambiarra = str({f'{df}'})
gambiarra = gambiarra.replace('{', '')
gambiarra = gambiarra.replace('}', '')
gambiarra = gambiarra.replace('TOKEN', '')
gambiarra = gambiarra.replace('"', '')
gambiarra = gambiarra.replace(':', '')
# salvar em txt
arquivo = open("tratados.txt.txt", "a")
arquivo.write(f"{gambiarra}")
print(gambiarra)
I’m not getting the code to stop shortening the result after removing everything needed
– Fusquinhaw
Please clarify your problem or provide additional details in order to highlight exactly what you need. The way it’s written these days it’s hard to tell exactly what you’re asking.
–