astropy / astropy/astroquery

How to Limit Rows in NasaExoplanetArchive?

Open
#2,974 2 comments 0 reactions 0 assignees View on GitHub
Documentation ipac.nexsci.nasa_exoplanet_archive
Dominant language
Python
Stars
791
Forks
451
Avg merge
1d 3h
Merged PRs (30d)
4

Description

I'm trying to limit the number of rows that the query gives me.

This doesn't work, any ideas on how to do it?

```
NasaExoplanetArchive.query_criteria(table="stellarhosts",`orderby="sy_pnum desc", count=3)
```

Contributor guide

Open the contributing guide

Research direction

The entry point mentioned is NasaExoplanetArchive.query_criteria(); start by checking its documented arguments and reproducing the query with the requested ordering. Done means the supported row-limit usage is identified and the query reliably returns only three rows, with the usage documented or demonstrated.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
api
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.