Skip to content

Commit

Permalink
Adding example on querying for missing values (astrodbtoolkit#74)
Browse files Browse the repository at this point in the history
  • Loading branch information
dr-rodriguez authored Apr 19, 2024
1 parent 15aafc9 commit bc9e225
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit bc9e225

Please sign in to comment.