Postgresql Data Type Float Python Function Example With A Loop