I think you need to handle datetime columns specially here, because SQL generally return a None which makes it object dtype. You might need to do ``pd.to_datetime`` (and you might need a ``coerce_datetime`` argument).