From 72198e74abb250b5544d84aa158fa4b74ea450fc Mon Sep 17 00:00:00 2001 From: David Rodriguez Date: Fri, 19 Apr 2024 14:25:08 -0400 Subject: [PATCH] Adding example on querying for missing values --- docs/index.rst | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/index.rst b/docs/index.rst index a00ac4e..81037a3 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -264,6 +264,10 @@ Example query for sources with declinations larger than 0:: db.query(db.Sources).filter(db.Sources.c.dec > 0).table() +Example query for rows with missing data:: + + db.query(db.Publications).filter(db.Publications.c.doi.is_(None)).table() + Example query returning just a single column (source) and sorting sources by declination:: db.query(db.Sources.c.source).order_by(db.Sources.c.dec).table()