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

Function chart_second_axis

chartify/examples.py:1067–1082  ·  view source on GitHub ↗

Docstring

()

Source from the content-addressed store, hash-verified

1065
1066@_print_source
1067def chart_second_axis():
1068 """
1069 Docstring
1070 """
1071 import chartify
1072
1073 # Generate example data
1074 data = chartify.examples.example_data()
1075
1076 # Sum price grouped by date
1077 price_by_date = data.groupby("date")["total_price"].sum().reset_index() # Move 'date' from index to column
1078 price_by_date["triple_total_price"] = price_by_date["total_price"] * 3
1079 price_by_date = price_by_date.sort_values("date")
1080 print(price_by_date.head())
1081 """Print break"""
1082 _second_axis_example(price_by_date)
1083
1084
1085@_print_source

Callers

nothing calls this directly

Calls 1

_second_axis_exampleFunction · 0.85

Tested by

no test coverage detected