new_type((oid1, ), "UUID", lambda data, cursor: data and uuid.UUID(data) or None) _ext.UUIDARRAY = _ext.new_array_type((oid2,), "UUID[]", _ext.UUID) _ext.register_type(_ext.UUID, conn_or_curs) _ext.register_type(_ext.UUIDARRAY, conn_or_curs) _ext.register_adapter(uuid...
id_cond_dataframe = dataframe[lambda t: t["id"] == 0] - if the key is a slice, then SELECT a portion of consecutive rows. - When want to retrieve a portion of :class:`DataFrame`: Args: key: :class:`slice` Returns: :class:`DataFrame` with the portion of consecutive rows .. ...
Member dotlambda left a comment Very nice! I wonder if it would make sense to turn this into a function to produce such a package that could also be used for e.g. https://pypi.org/project/phonenumberslite/ 👍 1 adisbladis force-pushed the psycopg2-binary branch from e2959d2 to...