Input column
Mode
Index (negative to start from end)
First index
Last index
Output column (empty for in-place)