Skip to content

Table.take should accept a variable number of arguments #332

@rameshvs

Description

@rameshvs

Stacking parentheses and brackets is confusing for beginners (e.g., make_array(1, 2, 3) is easier to understand thannp.array([1, 2, 3])). Taking multiple rows with Table.take should also accept this syntax, so that all of the following work and produce the same results:

t.take(np.arange(3))
t.take[:3]
t.take([0, 1, 2, 3])
t.take(0, 1, 2, 3)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions