Skip to content

Commit

Permalink
added error message text to exploring_explorer (#1040)
Browse files Browse the repository at this point in the history
  • Loading branch information
pejrich authored Dec 16, 2024
1 parent 154737d commit f07f1b3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions notebooks/exploring_explorer.livemd
Original file line number Diff line number Diff line change
Expand Up @@ -484,6 +484,8 @@ s1 = Series.from_list(["a", "b", "c"])
Series.add(s, s1)
```

> cannot invoke Explorer.Series.add/2 with mismatched dtypes: {:s, 64} and :string
You can flip them around.

```elixir
Expand Down Expand Up @@ -968,6 +970,8 @@ Remember those helpful error messages?
DF.filter(df, cuontry == "BRAZIL")
```

> could not find column name "cuontry". Did you mean: "country"
### Mutate

A common task in data analysis is to add columns or change existing ones. Mutate is a handy verb.
Expand Down Expand Up @@ -1526,6 +1530,8 @@ Trying for those helpful error messages again.
DF.sample(df, 10000)
```

> in order to sample more rows than are in the dataframe (1094), sampling `replace` must be true
```elixir
DF.sample(df, 10000, replace: true)
```
Expand Down

0 comments on commit f07f1b3

Please sign in to comment.