ESO query functions - order retrieved table columns as in the list passed to the function
- Dominant language
- Python
- Stars
- 791
- Forks
- 451
- Avg merge
- 1d 3h
- Merged PRs (30d)
- 4
Description
## Version 0.4.12.dev10525
```
>>> import astroquery as aq
>>> aq.__version__
'0.4.12.dev10525'
```
## Observed behavior:
The columns of the retrieved table are not ordered as in the list provided by the user.
```
>>> from astroquery.eso import Eso
>>> eso = Eso()
>>> eso.query_main(columns = ['dp_id', 'dec', 'ra' ])[:0]
ra dec dp_id
deg deg
float64 float64 object
------- ------- ------
```
## Expected behavior:
The columns of the retrieved table are ordered as in the list provided by the user.
```
>>> from astroquery.eso import Eso
>>> eso = Eso()
>>> eso.query_main(columns = ['dp_id', 'dec', 'ra' ])[:0]
dp_id dec ra
deg deg
object float64 float64
------ ------- -------
```
## How to reproduce:
... see snippets above. This happens for all ESO functions `query_*(...)`.
Contributor guide
Research direction
Start with the astroquery.eso.Eso query_main and the other query_* entry points described in the issue, then reproduce the column-order difference with the provided Python snippets. Done means every ESO query function returns columns in the same order as the user's columns list.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- api, data
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100