Skip to content

Commit 63faa17

Browse files
authored
fix: do not copy syntax is with ! (#2874)
swapped : for ! for reference syntax
1 parent a3869e3 commit 63faa17

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/src/man/basics.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -834,8 +834,8 @@ Recapping what we have already learned,
834834
To get the column `:Age` from the `german` data frame you can do the following:
835835

836836
- to copy the vector: `german[:, :Age]`, `german[:, "Age"]` or `german[:, 2]`;
837-
- to get a vector without copying: `german.Age`, `german."Age"`, `german[:, :Age]`,
838-
`german[:, "Age"]` or `german[:, 2]`.
837+
- to get a vector without copying: `german.Age`, `german."Age"`, `german[!, :Age]`,
838+
`german[!, "Age"]` or `german[!, 2]`.
839839

840840
To get the first two columns as a `DataFrame`, we can index as follows:
841841
- to get the copied columns: `german[:, 1:2]`, `german[:, [:id, :Age]]`, or `german[:, ["id", "Age"]]`;

0 commit comments

Comments
 (0)