MCPcopy Create free account
hub / github.com/spotify/chartify / _histogram_example

Function _histogram_example

chartify/examples.py:883–890  ·  view source on GitHub ↗

# Histogram

(data)

Source from the content-addressed store, hash-verified

881
882@_print_source
883def _histogram_example(data):
884 """# Histogram"""
885 # Plot the data
886 ch = chartify.Chart(blank_labels=True, y_axis_type="density")
887 ch.set_title("Histogram")
888 ch.set_subtitle("")
889 ch.plot.histogram(data_frame=data, values_column="unit_price", bins=50)
890 ch.show(_OUTPUT_FORMAT)
891
892
893@_print_source

Callers 1

plot_histogramFunction · 0.85

Calls 4

set_titleMethod · 0.95
set_subtitleMethod · 0.95
showMethod · 0.95
histogramMethod · 0.80

Tested by

no test coverage detected