psql use query result convert decimal python numpy psycopg2

Solutions on MaxInterview for psql use query result convert decimal python numpy psycopg2 by the best coders in the world

showing results for - "psql use query result convert decimal python numpy psycopg2"
Izzy
17 Jan 2017
1DEC2FLOAT = psycopg2.extensions.new_type(
2    psycopg2.extensions.DECIMAL.values,
3    'DEC2FLOAT',
4    lambda value, curs: float(value) if value is not None else None)
5psycopg2.extensions.register_type(DEC2FLOAT)
6