Adding/removing rows to/from DictTables only seems to work when the index column does not have a name, e.g., when the table is constructed from dictionaries:
julia> idx = [1, 2, 3]; dt = DictTable(name = Dictionary(idx, ["A", "B", "C"]))
DictTable with 1 column and 3 rows:
name
┌─────
1 │ A
2 │ B
3 │ C
julia> delete!(dt, 1)
DictTable with 1 column and 2 rows:
name
┌─────
2 │ B
3 │ C
julia> insert!(dt, 4, (name = "D",))
DictTable with 1 column and 3 rows:
name
┌─────
2 │ B
3 │ C
4 │ D
However, when creating a DictTable with a named index column, insert! and delete! throw errors:
Adding/removing rows to/from DictTables only seems to work when the index column does not have a name, e.g., when the table is constructed from dictionaries:
However, when creating a DictTable with a named index column,
insert!
anddelete!
throw errors:(Tested with Julia 1.9.3)