Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Jacob Quinn <[email protected]>
Co-authored-by: Milan Bouchet-Valat <[email protected]>
  • Loading branch information
3 people authored Dec 14, 2023
1 parent 0bc5f37 commit 302c7b0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/src/man/basics.md
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ julia> source = [(type="circle", radius=10), (type="square", side=20)]
```

If you want to create a data frame from such data containing all columns present in at least
one of the source observations, and holding `missing` entry if some column is not present then
one of the source observations, with a `missing` entry if some column is not present then
you can use `Tables.dictcolumntable` function to help you create the desired data frame:

```
Expand All @@ -199,7 +199,7 @@ julia> DataFrame(Tables.dictcolumntable(source))
2 │ square missing 20
```

The `Tables.dictcolumntable` role is to make sure that the `DataFrame` constructor gets information
The role of `Tables.dictcolumntable` is to make sure that the `DataFrame` constructor gets information
about all columns present in the source data and properly instantiates them. If we did not use
this function the `DataFrame` constructor would assume that the first row of data contains the set
of columns present in the source, which would lead to an error in our example:
Expand Down

0 comments on commit 302c7b0

Please sign in to comment.