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

Function plot_bar

chartify/examples.py:389–405  ·  view source on GitHub ↗

Bar example

()

Source from the content-addressed store, hash-verified

387
388@_print_source
389def plot_bar():
390 """
391 Bar example
392 """
393 import chartify
394
395 # Generate example data
396 data = chartify.examples.example_data()
397
398 quantity_by_fruit = data.groupby("fruit")["quantity"].sum().reset_index()
399
400 print(quantity_by_fruit.head())
401 """Print break"""
402 _bar_example_1(quantity_by_fruit)
403 _bar_example_2(quantity_by_fruit)
404 _bar_example_3(quantity_by_fruit)
405 _bar_example_4(quantity_by_fruit)
406
407
408@_print_source

Callers

nothing calls this directly

Calls 4

_bar_example_1Function · 0.85
_bar_example_2Function · 0.85
_bar_example_3Function · 0.85
_bar_example_4Function · 0.85

Tested by

no test coverage detected