dhhagan / py-openaq

Python wrapper for the Open AQ API
MIT License
63 stars 10 forks source link

df=True not working #38

Open pathikg opened 2 years ago

pathikg commented 2 years ago

I was trying to use openaq.OpenAQ.countries() method with df=True as a parameter so that I will get an output as a Pandas DataFrame but when I ran the code, I am just receiving output in the dictionary format, Output : image

Code :

import openaq
api = openaq.OpenAQ()
status, res = api.countries(df=True)
print(res)

OS : Windows 10 Python version : 3.7.8 openaq version = 1.1.0

dhhagan commented 2 years ago

Thanks for pointing this out -> i'll try to replicate, patch, and fix soon.