tskit icon indicating copy to clipboard operation
tskit copied to clipboard

Improve docs for modifying metadata

Open benjeffery opened this issue 7 months ago • 1 comments

From #3140

"Still, it'd be good to have not just "see here" but maybe a warning that in-place modification wont' work. (Also, those docs don't have the simplest use cases of "change an existing value in top-level metadata" or "change/add a value in each row".)"

benjeffery avatar May 07 '25 11:05 benjeffery

Also it wasn't clear to me at first sight how to delete top-level metadata (there is no drop_metadata() method at the top level). But it looks like you can just assign e.g. tables.metadata={}.

hyanwong avatar May 21 '25 16:05 hyanwong