Skip to content

Commit e3bf18f

Browse files
adjust notebook and workflow
1 parent b10926f commit e3bf18f

File tree

2 files changed

+7
-17
lines changed

2 files changed

+7
-17
lines changed

.github/workflows/publish-marimo.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ on:
55
branches: [master]
66
paths:
77
- 'data_science_tools/polars_vs_pandas.py' # Only trigger on this specific file
8+
- '.github/workflows/publish-marimo.yml' # Trigger on changes to this file
89

910
jobs:
1011
build:
@@ -24,18 +25,18 @@ jobs:
2425
python -m pip install --upgrade pip
2526
pip install marimo
2627
# Install any other dependencies needed by your notebooks
27-
pip install pandas polars pyarrow
28+
pip install pandas polars
2829
2930
- name: Export marimo notebook
3031
run: |
31-
mkdir -p marimo_notebooks/
32+
mkdir -p marimo_notebooks/data_science_tools/polars_vs_pandas
3233
# Export the specific notebook
33-
marimo export html-wasm "data_science_tools/polars_vs_pandas.py" --output marimo_notebooks/ --mode edit
34+
marimo export html-wasm "data_science_tools/polars_vs_pandas.py" --output marimo_notebooks/data_science_tools/polars_vs_pandas --mode edit
3435
3536
- name: 📦 Upload Pages Artifact
3637
uses: actions/upload-pages-artifact@v3
3738
with:
38-
path: marimo_notebooks
39+
path: marimo_notebooks/data_science_tools/polars_vs_pandas
3940

4041
deploy:
4142
needs: build
@@ -54,3 +55,4 @@ jobs:
5455
uses: actions/deploy-pages@v4
5556
with:
5657
artifact_name: github-pages
58+
path: marimo_notebooks/data_science_tools/polars_vs_pandas

data_science_tools/polars_vs_pandas.py

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ def _():
1313

1414
@app.cell(hide_code=True)
1515
def _(mo):
16-
mo.md(r"""# Polars vs. Pandas: A Multi-Core Alternative for DataFrames""")
16+
mo.md(r"""# Polars vs. Pandas: A Fast, Multi-Core Alternative for DataFrames""")
1717
return
1818

1919

@@ -225,17 +225,5 @@ def _(df_pd_1, df_pl_1):
225225
return
226226

227227

228-
@app.cell
229-
def _(mo):
230-
mo.md(r"""## Final Thoughts""")
231-
return
232-
233-
234-
@app.cell
235-
def _(df_pl_1):
236-
df_pd_2 = df_pl_1.to_pandas()
237-
return (df_pd_2,)
238-
239-
240228
if __name__ == "__main__":
241229
app.run()

0 commit comments

Comments
 (0)