jrderuiter / pybiomart

A simple pythonic interface to biomart.
MIT License
53 stars 11 forks source link

Arguments `use_attr_names` and `dtypes` don't play well together #10

Open ivirshup opened 5 years ago

ivirshup commented 5 years ago

If you've decided to pass use_attr_names=True, you'd still have to pass the display names to set column dtypes. I think this is unintuitive. For example, here I'd expect column "entrezgene" to be str:

>>> dataset.query(
        attributes=["entrezgene"], use_attr_names=True, dtypes={"entrezgene": str}
    ).dtypes
entrezgene    int64
dtype: object