Skip to content

Commit

Permalink
plot doc
Browse files Browse the repository at this point in the history
  • Loading branch information
neelasha23 committed Dec 31, 2023
1 parent c31c829 commit ba2c2d6
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion doc/api/magic-plot.md
Original file line number Diff line number Diff line change
Expand Up @@ -323,5 +323,21 @@ column = "bill_length_mm"
```

```{code-cell} ipython3
%sqlplot boxplot --table {{penguins}} --schema {{schema}} --column {{column}}
%sqlplot boxplot --table {{table}} --schema {{schema}} --column {{column}}
```

Now let's see another example using `--with`:

```{code-cell} ipython3
snippet = "gentoo"
```

```{code-cell} ipython3
%%sql --save {{snippet}}
SELECT * FROM {{schema}}.{{table}}
WHERE species == 'Gentoo'
```

```{code-cell} ipython3
%sqlplot boxplot --table {{snippet}} --with {{snippet}} --column {{column}}
```

0 comments on commit ba2c2d6

Please sign in to comment.