Skip to content

Commit

Permalink
Merge pull request #213 from QuantEcon/reshape-typos
Browse files Browse the repository at this point in the history
  • Loading branch information
doctor-phil authored Nov 10, 2022
2 parents 2c7aa48 + 7e42e2d commit 5a49d83
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lectures/pandas/reshape.md
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@ The `pivot` method:
We'll illustrate with an example.

```{code-cell} python
# .head 8 excludes Ibaka -- will discuss why later
# .head 6 excludes Ibaka -- will discuss why later
bball.head(6).pivot(index="Year", columns="Player", values="Pts")
```

Expand Down Expand Up @@ -439,11 +439,11 @@ It overcomes two limitations of `pivot`:
bball
```

Notice that we can replicate the functionality of `pivot` if we pass
Notice that we can replicate the functionality of `pivot` using `pivot_table` if we pass
the same arguments.

```{code-cell} python
bball.head(6).pivot(index="Year", columns="Player", values="Pts")
bball.head(6).pivot_table(index="Year", columns="Player", values="Pts")
```

But we can also choose multiple columns to be used in
Expand Down

2 comments on commit 5a49d83

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.