Skip to content

Commit

Permalink
Merge pull request #401 from alfredocarella/patch-1
Browse files Browse the repository at this point in the history
Tiny typo fixes and improvement suggestion to code example in "Design Philosophy" doc
  • Loading branch information
machow authored Jul 19, 2024
2 parents f8e30ea + 1111030 commit 7365aaa
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/blog/design-philosophy/index.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ The grid cells couldn't be styled with borders for presentation purposes, the va

Over time, and this took about 10-15 years, tables-within-spreadsheets got a little easier on the eyes. By the early 1990s, Excel could paint borders on your tables, better typographical support was available, and the formatting of values was fully-featured (though, [wonky](https://www.cnet.com/tech/computing/prevent-excel-from-reformatting-two-numbers-to-a-date-and-month/)). Great! Problem solved, right? Not really.

While Excel tables from the last three decades looked much better than 1980s-spreadsheet-borne tables, they could never hold a candle to the what was shown in the *Census Manual* (no matter how much of an Excel expert you became). Further to this, data analysis started to became a thing accomplished outside of Excel. One example of that is Python and its use inside Jupyter notebooks. We now have a bag of problematic scenarios
While Excel tables from the last three decades looked much better than 1980s-spreadsheet-borne tables, they could never hold a candle to what was shown in the *Census Manual* (no matter how much of an Excel expert you became). Further to this, data analysis started to became a thing accomplished outside of Excel. One example of that is Python and its use inside Jupyter notebooks. We now have a bag of problematic scenarios

- all Python: analyze data and generate tables all in Python (bad tables)
- all Excel: analyze data and make tables in Excel (less flexible analysis)
Expand Down Expand Up @@ -215,16 +215,16 @@ The problem grows worse when values need to be conveyed as images or plots. If y
# | code-fold: true
# | code-summary: "Show the code"
import great_tables
from great_tables import GT, md
from great_tables.data import illness
import polars as pl
from polars import selectors as cs
illness_mini = (
pl.from_pandas(illness)
.head(10)
.select(
"test", values=pl.concat_str(pl.exclude("test", "units"), separator=" ", ignore_nulls=True)
"test", values=pl.concat_str(cs.starts_with("day"), separator=" ", ignore_nulls=True)
)
.slice(1, 9)
)
Expand All @@ -236,7 +236,7 @@ illness_mini = (
.tab_stubhead(label=md("**Test**"))
.cols_label(values=md("*Progression*"))
.cols_align(align="center", columns="values")
.tab_source_note(source_note="Measurements from Day 3 through to Day 8.")
.tab_source_note(source_note="Measurements from Day 3 through Day 9.")
)
```

Expand Down

0 comments on commit 7365aaa

Please sign in to comment.