Skip to content

Commit

Permalink
bugfixing index
Browse files Browse the repository at this point in the history
  • Loading branch information
trevorcampbell committed Nov 16, 2023
1 parent 8a840e0 commit 23ad165
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 10 deletions.
1 change: 1 addition & 0 deletions source/classification2.md
Original file line number Diff line number Diff line change
Expand Up @@ -1123,6 +1123,7 @@ cv_10_metrics
```

```{index} cross-validation; folds
```

In this case, using 10-fold instead of 5-fold cross validation did
reduce the standard error very slightly. In fact, due to the randomness in how the data are split, sometimes
Expand Down
4 changes: 2 additions & 2 deletions source/intro.md
Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,7 @@ high-level categories of languages, which include "Aboriginal languages",
our question we want to filter our data set so we restrict our attention
to only those languages in the "Aboriginal languages" category.

```{index} pandas.DataFrame; [], filtering rows, logical statement, logical operator; equivalency operator, string
```{index} pandas.DataFrame; [], filtering rows, logical statement, logical operator; equivalency (==), string
```

We can use the `[]` operation to obtain the subset of rows with desired values
Expand Down Expand Up @@ -658,7 +658,7 @@ ten_lang
(ch1-adding-modifying)=
## Adding and modifying columns

```{index} assign, adding columns, modifying columns
```{index} adding columns, modifying columns
```

Recall that our data analysis question referred to the *count* of Canadians
Expand Down
3 changes: 0 additions & 3 deletions source/jupyter.md
Original file line number Diff line number Diff line change
Expand Up @@ -176,9 +176,6 @@ Restarting the Python session can be accomplished by clicking Restart Kernel and
```{index} kernel, Jupyter notebook; kernel
```

```{index} see: Jupyter notebook; kernel
```

The kernel is a program that executes the code inside your notebook and
outputs the results. Kernels for many different programming languages have
been created for Jupyter, which means that Jupyter can interpret and execute
Expand Down
2 changes: 1 addition & 1 deletion source/reading.md
Original file line number Diff line number Diff line change
Expand Up @@ -700,7 +700,7 @@ In `ibis`, we can do that using the `count` function from the table object.
canlang_table.count()
```

```{index} execute, ibis; execute
```{index} ibis; execute
```

Wait a second...this isn't the number of rows in the database. In fact, we haven't actually sent our
Expand Down
6 changes: 3 additions & 3 deletions source/viz.md
Original file line number Diff line number Diff line change
Expand Up @@ -1021,16 +1021,16 @@ glue("can_lang_plot_legend", can_lang_plot_legend.properties(height=320, width=4
Scatter plot of percentage of Canadians reporting a language as their mother tongue vs the primary language at home colored by language category with the legend edited.
:::

```{index} color palette, color blindness simulator
```

In {numref}`can_lang_plot_legend`, the points are colored with
the default `altair` color scheme, which is called `"tableau10"`. This is an appropriate choice for most situations and is also easy to read for people with reduced color vision.
In general, the color schemes that are used by default in Altair are adapted to the type of data that is displayed and selected to be easy to interpret both for people with good and reduced color vision.
If you are unsure about a certain color combination, you can use
this [color blindness simulator](https://www.color-blindness.com/coblis-color-blindness-simulator/) to check
if your visualizations are color-blind friendly.

```{index} color palette; color blindness simulator
```

All the available color schemes and information on how to create your own can be viewed [in the Altair documentation](https://altair-viz.github.io/user_guide/customization.html#customizing-colors).
To change the color scheme of our chart,
we can add the `scheme` argument in the `scale` of the `color` encoding.
Expand Down
8 changes: 7 additions & 1 deletion source/wrangling.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,9 @@ This knowledge will be helpful in effectively utilizing these objects in our dat
```{index} data frame; definition
```

```{index} see: data frame; pandas.DataFrame
```

```{index} pandas.DataFrame
```

Expand Down Expand Up @@ -1027,15 +1030,18 @@ pd.Series(["Vancouver", "Toronto"]).isin(pd.Series(["Toronto", "Vancouver"]))

### Extracting rows above or below a threshold using `>` and `<`

```{index} logical operator; greater than (>, >=), logical operator; less than (<, <=)
```{index} logical operator; greater than (> and >=), logical operator; less than (< and <=)
```

```{index} see: >; logical operator
```

```{index} see: >=; logical operator
```

```{index} see: <; logical operator
```

```{index} see: <=; logical operator
```

Expand Down

0 comments on commit 23ad165

Please sign in to comment.