I have some csv files and sometime I badly configure the dtype
parameter in the pandas.read_csv
method so Pandas failed with:
TypeError: Cannot cast array data from dtype('float64') to dtype('int64') according to the rule 'safe'
without saying on which column this conversion failed.
How can I retrieve the column's name or index (and maybe first wrong value) of the failure?
PS: I cannot use auto detect / type inference.