Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add in warning directive #145

Merged
merged 2 commits into from
Jun 8, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions lectures/pandas/reshape.md
Original file line number Diff line number Diff line change
Expand Up @@ -342,8 +342,10 @@ It can be used to move all of the "values" stored in your DataFrame to a
single column with all other columns being used to contain identifying
information.

**Warning**: When you use `melt`, any index that you currently have
```{warning}
When you use `melt`, any index that you currently have
will be deleted.
```

We saw used `melt` above when we constructed `bball_long`:

Expand Down Expand Up @@ -591,8 +593,9 @@ df_melted

### Exercise 1

(*Warning*: This one is challenging):

```{warning}
This one is challenging
```
Recall the `bball_wide` DataFrame from above (repeated below to jog
your memory).

Expand Down
4 changes: 3 additions & 1 deletion lectures/python_fundamentals/basics.md
Original file line number Diff line number Diff line change
Expand Up @@ -395,8 +395,10 @@ print("a ^ b is", a^b)

You likely could have guessed all except the last two.

**Warning**: Python uses `**`, not `^`, for exponentiation (raising a number
```{warning}
Python uses `**`, not `^`, for exponentiation (raising a number
to a power)!
```

Notice also that above `+`, `-` and `**` all returned an integer
type, but `/` converted the result to a float.
Expand Down