()
| 143 | styler1 = df1.style.apply(_color_large_vals, axis=1).hide(axis="index") |
| 144 | |
| 145 | def _vega_sine(): |
| 146 | x = np.arange(100) |
| 147 | source = pd.DataFrame({"x": x, "f(x)": np.sin(x / 5)}) |
| 148 | |
| 149 | return alt.Chart(source).mark_line().encode(x="x", y="f(x)") |
| 150 | |
| 151 | vega_sine = _vega_sine() |
| 152 |