def log10(self, data, ind): data = np.compress(data[:, ind] > 0, data, 0) data[:, ind] = np.log10(data[:, ind]) return data