Skip to content

Resolve list insertion ambiguity #16

@raylutz

Description

@raylutz

There is ambiguity if a nested list structure is meant to be assigned to an array cell, when a list with one item is being inserted.

For example:

   collist = my_daf[:, 'colname'].to_list()    # this will return a list, but sometimes of only one value, if there is only one row.
   my_daf[:, 'colname2'] = collist             # there is ambiguity here as to whether the list with one
                                               # item should be placed in the cell or if just the value.

Currently, the code will insert just the value. But then:

   my_daf[3,3] = [4]

will not insert the list, but just the value, which seems wrong.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions