def log_hist(data): data = pd.DataFrame([]) for col in data: data_log = np.log(data[col]) return data[col].hist() ---------------------------