diff --git a/StatsExamples/l_cancel_example.ipynb b/StatsExamples/l_cancel_example.ipynb index 865ad5c..8fb84ba 100644 --- a/StatsExamples/l_cancel_example.ipynb +++ b/StatsExamples/l_cancel_example.ipynb @@ -434,55 +434,6 @@ " .agg([pl.col(\"l_cancel\").mean(), pl.count()])\n", ")" ] - }, - { - "cell_type": "code", - "execution_count": 35, - "metadata": {}, - "outputs": [ - { - "data": { - "text/html": [ - "
\n", - "shape: (22_746, 2)
frame_indexl_cancel
i64f64
1251.0
1281.0
1301.0
1301.0
1401.0
1411.0
1421.0
1451.0
1471.0
1481.0
1491.0
1511.0
169651.0
169841.0
172151.0
172781.0
172801.0
173050.75
174101.0
174411.0
175931.0
183610.0
185531.0
185860.5
" - ], - "text/plain": [ - "shape: (22_746, 2)\n", - "┌─────────────┬──────────┐\n", - "│ frame_index ┆ l_cancel │\n", - "│ --- ┆ --- │\n", - "│ i64 ┆ f64 │\n", - "╞═════════════╪══════════╡\n", - "│ 125 ┆ 1.0 │\n", - "│ 128 ┆ 1.0 │\n", - "│ 130 ┆ 1.0 │\n", - "│ 130 ┆ 1.0 │\n", - "│ … ┆ … │\n", - "│ 17593 ┆ 1.0 │\n", - "│ 18361 ┆ 0.0 │\n", - "│ 18553 ┆ 1.0 │\n", - "│ 18586 ┆ 0.5 │\n", - "└─────────────┴──────────┘" - ] - }, - "execution_count": 35, - "metadata": {}, - "output_type": "execute_result" - } - ], - "source": [ - "( # L cancel percentage by stocks remaining\n", - " l_cancel.filter(pl.col(\"character\") == \"FALCO\")\n", - " .sort(pl.col(\"frame_index\"))\n", - " .groupby_rolling(\"frame_index\", period=\"100i\")\n", - " .agg(pl.col(\"l_cancel\").mean())\n", - ")" - ] } ], "metadata": {