Thanks for reading!

I think that it's definitely possible, but harder to code. I can try to infer the dtypes from the first returned row, but there are annoying nulls possible. Postgres doesn't send the intended type with null, unfortunately. So I will have undetermined column types which I'll have to process separately and transform to NaN/NaT/whatever as soon as I see at least one non-null value.

Vadim Markovtsev
Vadim Markovtsev

Written by Vadim Markovtsev

Machine learning and software engineer. Development teams manager. Public speaker. Google Developer Expert in Machine Learning (2018–2021).

Responses (1)