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")