Skip to content

Commit

Permalink
trying to figure out which code line breaks
Browse files Browse the repository at this point in the history
  • Loading branch information
jkanche committed Jan 4, 2024
1 parent c509c58 commit d00e799
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions chapters/biocframe/intro.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -74,11 +74,11 @@ This accepts different subsetting arguments like a boolean vector, a `slice` obj
:::

```{python}
sliced = bframe[1:2, [True, False, False]]
print("Subset using booleans: \n", sliced)
sliced_with_bools = bframe[1:2, [True, False, False]]
print("Subset using booleans: \n", sliced_with_bools)
sliced = bframe[[0,2], ["symbol", "ensembl"]]
print("\nSubset using column names: \n", sliced)
sliced_with_names = bframe[[0,2], ["symbol", "ensembl"]]
print("\nSubset using column names: \n", sliced_with_names)
# Short-hand to get a single column:
print("\nShort-hand to get a single column: \n", bframe["ensembl"])
Expand Down

0 comments on commit d00e799

Please sign in to comment.