Skip to content

Commit 09db678

Browse files
committed
Small changes
1 parent 9ff379c commit 09db678

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

chapters/chapter1.qmd

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
---
2-
title: "Quarto Basics"
2+
title: "A basic notebook"
33
format: [html, ipynb] # This qmd file will be compiled as HTML and as a jupyter notebook
44
---
55

6+
# A beautiful figure
67

7-
For a demonstration of a line plot on a polar axis, see @fig-polar.
8+
This chunk shows how you can produce a beautiful figure.
89

910
```{python}
1011
#| label: fig-polar
@@ -24,7 +25,7 @@ ax.grid(True)
2425
plt.show()
2526
```
2627

27-
## Demo: Basic Pandas Table
28+
## A beautiful datafrmae
2829

2930
This section demonstrates how to create and display a simple pandas DataFrame.
3031

@@ -46,16 +47,18 @@ df
4647

4748
## A more sophisticated table
4849

50+
This section demonstrates how to create and display a simple pandas DataFrame.
4951

5052
```{python}
5153
from great_tables import GT, html
5254
from great_tables.data import sza
5355
import polars as pl
56+
from polars import col as c
5457
import polars.selectors as cs
5558
5659
sza_pivot = (
5760
pl.from_pandas(sza)
58-
.filter((pl.col("latitude") == "20") & (pl.col("tst") <= "1200"))
61+
.filter((c.latitude == "20") & (c.tst <= "1200"))
5962
.select(pl.col("*").exclude("latitude"))
6063
.drop_nulls()
6164
.pivot(values="sza", index="month", on="tst", sort_columns=True)

0 commit comments

Comments
 (0)