Skip to content

Commit

Permalink
Add pygwalker example (#2800)
Browse files Browse the repository at this point in the history
Very simple example showing usage in marimo.
  • Loading branch information
akshayka authored Nov 5, 2024
1 parent e6d9a2c commit 595fd1f
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions examples/third_party/pygwalker/example.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# /// script
# requires-python = ">=3.10"
# dependencies = [
# "pygwalker==0.4.9.13",
# "vega-datasets==0.9.0",
# ]
# ///
import marimo

__generated_with = "0.9.14"
app = marimo.App(width="medium")


@app.cell
def __():
import pygwalker as pyg

from vega_datasets import data
return data, pyg


@app.cell
def __(data, pyg):
df = data.iris()

pyg.walk(df)
return (df,)


if __name__ == "__main__":
app.run()

0 comments on commit 595fd1f

Please sign in to comment.