Please in Python 3 and Pandas, I want to change the type of a column from a CSV file. I used this command:
cand_doacoes ['CPF_CNPJ_doador'] = cand_doacoes.CPF_CNPJ_doador.astype (int64)
But the error appears:
NameError Traceback (most recent call last) in () ---- > 1 cand_doacoes ['CPF_CNPJ_doador'] = cand_doacoes.CPF_CNPJ_doador.astype (int64)
NameError: name 'int64' is not defined
Does anyone know the correct command?