Skip to content
Merged
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
4 changes: 2 additions & 2 deletions tables_and_editing.md
Original file line number Diff line number Diff line change
Expand Up @@ -505,8 +505,8 @@ It is also easy to add more rows:
```{code-cell} ipython3
new_pos = 10
new_site_id = new_tables.sites.add_row(
position=new_pos, ancestral_state="G", metadata=b"An empty site"
# NB: For this example table we have to feed a raw byte string as metadata
position=new_pos, ancestral_state="G", metadata=b"A new site"
# NB: This site table has no scheme, so metadata must be a raw byte string
)
print(f"New empty site allocated at position {new_pos} with ID {new_site_id}")
new_tables.sites
Expand Down
Loading