ENH: support for an arbitrary key