Sql Year Data Type Conversion Errors In Python