File tree Expand file tree Collapse file tree 2 files changed +7
-17
lines changed Expand file tree Collapse file tree 2 files changed +7
-17
lines changed Original file line number Diff line number Diff line change 5
5
branches : [master]
6
6
paths :
7
7
- ' 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
8
9
9
10
jobs :
10
11
build :
@@ -24,18 +25,18 @@ jobs:
24
25
python -m pip install --upgrade pip
25
26
pip install marimo
26
27
# Install any other dependencies needed by your notebooks
27
- pip install pandas polars pyarrow
28
+ pip install pandas polars
28
29
29
30
- name : Export marimo notebook
30
31
run : |
31
- mkdir -p marimo_notebooks/
32
+ mkdir -p marimo_notebooks/data_science_tools/polars_vs_pandas
32
33
# 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
34
35
35
36
- name : 📦 Upload Pages Artifact
36
37
uses : actions/upload-pages-artifact@v3
37
38
with :
38
- path : marimo_notebooks
39
+ path : marimo_notebooks/data_science_tools/polars_vs_pandas
39
40
40
41
deploy :
41
42
needs : build
54
55
uses : actions/deploy-pages@v4
55
56
with :
56
57
artifact_name : github-pages
58
+ path : marimo_notebooks/data_science_tools/polars_vs_pandas
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ def _():
13
13
14
14
@app .cell (hide_code = True )
15
15
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""" )
17
17
return
18
18
19
19
@@ -225,17 +225,5 @@ def _(df_pd_1, df_pl_1):
225
225
return
226
226
227
227
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
-
240
228
if __name__ == "__main__" :
241
229
app .run ()
You can’t perform that action at this time.
0 commit comments