Skip to content

Commit bfae9bc

Browse files
committed
Missing imports for pyodide
1 parent ed48977 commit bfae9bc

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

content/python_files/feature_engineering.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@
2929
# skrub expressions.
3030
# %%
3131
# %pip install -q https://pypi.anaconda.org/ogrisel/simple/polars/1.24.0/polars-1.24.0-cp39-abi3-emscripten_3_1_58_wasm32.whl
32-
# %pip install -q altair holidays https://pypi.anaconda.org/ogrisel/simple/skrub/0.6.dev0/skrub-0.6.dev0-py3-none-any.whl
32+
# %pip install -q https://pypi.anaconda.org/ogrisel/simple/skrub/0.6.dev0/skrub-0.6.dev0-py3-none-any.whl
33+
# %pip install -q altair holidays plotly nbformat
3334
# %%
3435
# The following 3 imports are only needed to workaround some limitations
3536
# when using polars in a pyodide/jupyterlite notebook.
@@ -407,9 +408,6 @@ def iqr(col, *, window_size: int):
407408
prediction_time
408409

409410
# %%
410-
import polars.selectors as cs
411-
412-
413411
@skrub.deferred
414412
def build_features(
415413
prediction_time,

0 commit comments

Comments
 (0)