venv added, updated
This commit is contained in:
13
myenv/lib/python3.12/site-packages/influxdb_client/extras.py
Normal file
13
myenv/lib/python3.12/site-packages/influxdb_client/extras.py
Normal file
@@ -0,0 +1,13 @@
|
||||
"""Extras to selectively import Pandas or NumPy."""
|
||||
|
||||
try:
|
||||
import pandas as pd
|
||||
except ModuleNotFoundError as err:
|
||||
raise ImportError(f"`query_data_frame` requires Pandas which couldn't be imported due: {err}")
|
||||
|
||||
try:
|
||||
import numpy as np
|
||||
except ModuleNotFoundError as err:
|
||||
raise ImportError(f"`data_frame` requires numpy which couldn't be imported due: {err}")
|
||||
|
||||
__all__ = ['pd', 'np']
|
||||
Reference in New Issue
Block a user