i have a dataframe where most columns are of type "object". I want to sort some like int, date or float.
I'm trying this through a dict:
df = df.astype(
{
'ID': int,
'Data': date,
'ID_Moto': int,
'ID_Veiculo': int,
'Pacotes_e': int,
'Data_de_coleta ': date,
'Pacotes_c': int
}
)
But it returns the following error:
TypeError: int() argument must be a string, a bytes-like object or a number, not 'NoneType'
what should I do?