def _convert_array(self, array):
        try:
            global np
            import numpy as np
        except __HOLE__ as ex:
            raise ImportError('DataFrameClient requires Numpy, '
                              '"{ex}" problem importing'.format(ex=str(ex)))
        if self.ignore_nan:
            number_types = (int, float, np.number)
            condition = (all(isinstance(el, number_types) for el in array) and
                         np.isnan(array))
            return list(np.where(condition, None, array))
        else:
            return list(array)
dataset/ETHPy150Open influxdata/influxdb-python/influxdb/influxdb08/dataframe_client.py/DataFrameClient._convert_array