pandas histogram with logarithmic axes
<p>I have a pandas DataFrame with time length data in seconds. The length varies from seconds to months so taking a histogram after taking log is convenient as it covers the range better. Here is a sample code</p>

<pre><code>%matplotlib inline
import numpy as np
import pandas as pd

x=np.random.lognormal(mean=10, sigma=1, size=10000)
df=pd.DataFrame(x, range(10000), columns=['timeLength'])

np.log10(df.timeLength).hist()
</code></pre>

<p>However, the labels on the x-axis are log scaled. Is there a way to put them as 10^1 and so on. Or even better, if I could put them as 1 second, 10 seconds, 1 minute, 10 minute, 1 hours, 1 day and so on.</p>