Skip to content

Commit 4c8e3b7

Browse files
add pointer to original assignment example in ch1 when it gets used early in ch3
1 parent 1b39bc6 commit 4c8e3b7

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

source/intro.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -646,6 +646,7 @@ ten_lang = arranged_lang.head(10)
646646
ten_lang
647647
```
648648

649+
(ch1-adding-modifying)=
649650
## Adding and modifying columns
650651

651652
```{index} assign

source/wrangling.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -800,7 +800,10 @@ It makes sense for `region`, `category`, and `language` to be stored as an
800800
above a numeric threshold of a column).
801801
That won't be possible if the variable is stored as a `object`.
802802
Fortunately, the `pandas.to_numeric` function provides a natural way to fix problems
803-
like this: it will convert the columns to the best numeric data types.
803+
like this: it will convert the columns to the best numeric data types. Note that below
804+
we *assign* the new numerical series to the `most_at_home` and `most_at_work` columns
805+
in `tidy_lang`; we have seen this syntax before in {numref}`ch1-adding-modifying`,
806+
and we will discuss it in more depth later in this chapter in {numref}`pandas-assign`.
804807

805808
```{code-cell} ipython3
806809
:tags: ["output_scroll"]

0 commit comments

Comments
 (0)