Aecdata, Climate Data, Embodied Carbon, Lca, Data Science.
bin_count = min(len(df[field].unique()), 50) # Limit the number of bins to a maximum of 50 plt.figure(figsize=(10, 6)) n, bins, patches = plt.hist(df[field], bins=bin_count, color='#2ab0ff', alpha=0.7, rwidth=0.85) plt.grid(axis='y', alpha=0.75) plt.xlabel('Value', fontsize=15)