MCPcopy Index your code
hub / github.com/spotify/chartify / setup_method

Method setup_method

tests/test_chart.py:100–115  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

98
99class TestChart:
100 def setup_method(self):
101 data = chartify.examples.example_data()
102 data = data.sort_values(["date", "fruit"])
103 color_order = data["fruit"].unique()
104 ch = chartify.Chart(x_axis_type="datetime")
105 ch.plot.scatter(
106 data_frame=data,
107 x_column="date",
108 y_column="unit_price",
109 size_column="quantity",
110 color_column="fruit",
111 color_order=color_order,
112 )
113 self.chart = ch
114 self.data = data
115 self.color_order = color_order
116
117 def test_data(self):
118 data = self.data

Callers

nothing calls this directly

Calls 1

scatterMethod · 0.45

Tested by

no test coverage detected