sift

container sift(container, selection)

Returns a copy of the container containing only the indices or keys in selection.

Arguments

  1. containerarray or dictionary to filter.
  2. selection — an array of either array indices (number) or dictionary keys (text).

Returns