0

I´m converting a py file to .exe, with auto-py-to-exe, but I have this error

An error occurred while packaging SyntaxError: invalid non-printable character U+00A0

My code is the following

import re
import pandas as pd
from unidecode import unidecode file = 'C:\Users\Neftali    Martinez\Documents\Python\EjemploCOMMNT.csv'
df = pd.read_csv(file,skiprows = 7) def limpieza(valor):
valor_apoyo = unidecode(valor)
lista_columna = re.findall('[0-9-a-z-A-Z- -!]+',valor_apoyo)
valor_nuevo = "".join([str(item) for item in lista_columna])
return valor_nuevo df["Comment"] = df[["Comment"]].applymap(limpieza)
df.to_csv("BaseAndy.csv")
tripleee
  • 175,061
  • 34
  • 275
  • 318
  • Your indentation is clearly wrong; please [edit] to fix it. On the desktop version of this site, you can get code marked up for you by pasting your code, selecting the pasted block, and typing ctrl-K. – tripleee Mar 13 '23 at 15:54

0 Answers0