Skip to content

Commit

Permalink
so objects
Browse files Browse the repository at this point in the history
  • Loading branch information
cboettig committed Sep 2, 2024
1 parent 8254796 commit b4ec80e
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 23 deletions.
39 changes: 19 additions & 20 deletions climate.ipynb

Large diffs are not rendered by default.

9 changes: 6 additions & 3 deletions climate.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ jupytext:
extension: .md
format_name: myst
format_version: 0.13
jupytext_version: 1.16.2
jupytext_version: 1.16.4
kernelspec:
display_name: Python 3 (ipykernel)
language: python
Expand All @@ -21,7 +21,7 @@ kernelspec:

```{code-cell} ipython3
import pandas as pd
import seaborn as sns
import seaborn.objects as so
```

```{code-cell} ipython3
Expand All @@ -31,7 +31,10 @@ df
```

```{code-cell} ipython3
sns.lineplot(df, x="decimal_date", y="average")
(
so.Plot(df, x="decimal_date", y="average")
.add(so.Line())
)
```

Which months are the CO2 values at the maximum? Minimum? Why is this?
Expand Down

0 comments on commit b4ec80e

Please sign in to comment.