How to make the code not automatically shorten a text

Asked

Viewed 13 times

-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

  • 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.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.