druid-io / pydruid

A Python connector for Druid
Other
507 stars 198 forks source link

only import pandas when `export_pandas` gets called #53

Closed dakra closed 7 years ago

dakra commented 8 years ago

I guess in most production and testing environments pandas is not installed, so every time you import pydruid anything you get an (annoying) warning message printed even though you never use the query.export_pandas function.

This pull moves the import into the function so you only get an error when you actually call export_pandas.

nishantmonu51 commented 8 years ago

:+1:

erikdubbelboer commented 7 years ago

Is there any plan om merging this soon? Seems like a no-brainer to me.

fjy commented 7 years ago

👍