InfluxCommunity/influxdb3-python

`pandas` is imported but it is not marked as a dependency

Bo98 opened this issue · 2 comments

Bo98 commented

It is imported unconditionally here:

Since it's only used in one place, it could be made an optional dependency by moving it into the load_json. pandas is an optional dependency in both pyarrow and influxdb-client (v2).

Otherwise, the alternative would be to make it mandatory dependency:

install_requires=['pyarrow','influxdb-client'],

Bo98 commented

It would also help with the particularly slow import times:

Screenshot 2023-07-23 at 22 06 56

Hi @Bo98,
Many thanks for the suggestion! This was my oversite. To keep the Client slim I have included it as an optional dependency and included some error handling for utilities which require pandas. Such as the write_file()