Skip to content

Commit

Permalink
Note about sorting
Browse files Browse the repository at this point in the history
  • Loading branch information
s2t2 committed Aug 30, 2024
1 parent f2e82e1 commit 449d8cd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docs/_quarto.yml
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,8 @@ book:

- part: "Data Processing"
chapters:
- href: notes/data-processing/sorting.qmd
text: "List Sorting"
- href: notes/data-processing/for-loops.qmd
text: "List Iteration and Looping"
- href: notes/data-processing/mapping.qmd
Expand All @@ -130,8 +132,7 @@ book:
text: "List Filtering"
- href: notes/data-processing/list-comprehensions.qmd
text: "List Comprehensions"
- href: notes/data-processing/sorting.qmd
text: "List Sorting"


- part: "Data Visualization"
chapters:
Expand Down
4 changes: 4 additions & 0 deletions docs/notes/dataviz/overview.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,10 @@ print(genres)
print(viewers)
```

:::{.callout-warning title="Important Note"}
When sorting the data, we have to sort BEFORE mapping, to ensure the two resulting lists are in corresponding order!
:::

With horizontal bar, we use the `orientation` parameter, and also flip the X and Y references:

```{python}
Expand Down

0 comments on commit 449d8cd

Please sign in to comment.