HistogramΒΆ

Example histogram

../_images/sphx_glr_plot_pd_hist_001.png
import numpy as np
import pandas as pd

# Generate random normal data
x = np.random.normal(0, 0.1, 1000)


# Convert to pandas DataFrame
df = pd.DataFrame({
    'x': x
    })

# Plot histogram
hist = df.hist(bins=50)

Total running time of the script: ( 0 minutes 0.398 seconds)

Gallery generated by Sphinx-Gallery