# Am I doing a log transformation of data correctly?

I'm doing some exploratory data analysis on some data and I get these histograms:

That looks like a candidate for a log transformation on the data, so I run the following Python code to transform the data:

df["abv"].apply(np.log).hist()
df["ibu"].apply(np.log).hist()
plt.show()


And I get this new plot of the transformed histograms:

Am I correct that a log transform was ok to do in this case, and if so, what's the best way to interpret the results?

• Try calling hist(logx=True) instead.
– Emre
Sep 11 '17 at 18:11