conrad
conrad copied to clipboard
conrad show --head and --tail
@vinayak-mehta : Is this open for PR? if so , any further description?
@anusha5695 Yes it is open! It should be similar to the unix head and tail commands, to display the first/last n rows of the table.
https://en.wikipedia.org/wiki/Head_(Unix)
Thanks. I ll pick this up
Hi @vinayak-mehta, i got it working. Just one question if a user specifies
conrad show --head --tail
, should it return the head ?
[ Because it first calls head, and then the tail over head will still return the first row.
Like tail(head(records)) ]
And vice-versa, conrad show --tail --head
should it return tail
[ First apply tail , get last result, then apply head ]
Im not sure if ordering of kwargs can be obtained.
@vinayak-mehta : Any updates on this?
@anusha5695 head and tail are independent options, they shouldn't be called together.
Okay 👍
@vinayak-mehta : PR raised