conrad icon indicating copy to clipboard operation
conrad copied to clipboard

conrad show --head and --tail

Open vinayak-mehta opened this issue 5 years ago • 8 comments

vinayak-mehta avatar Oct 28 '19 09:10 vinayak-mehta

@vinayak-mehta : Is this open for PR? if so , any further description?

anusha5695 avatar Oct 28 '19 10:10 anusha5695

@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)

vinayak-mehta avatar Oct 28 '19 10:10 vinayak-mehta

Thanks. I ll pick this up

anusha5695 avatar Oct 28 '19 10:10 anusha5695

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.

anusha5695 avatar Oct 28 '19 17:10 anusha5695

@vinayak-mehta : Any updates on this?

anusha5695 avatar Oct 29 '19 10:10 anusha5695

@anusha5695 head and tail are independent options, they shouldn't be called together.

vinayak-mehta avatar Oct 29 '19 10:10 vinayak-mehta

Okay 👍

anusha5695 avatar Oct 29 '19 12:10 anusha5695

@vinayak-mehta : PR raised

anusha5695 avatar Oct 29 '19 12:10 anusha5695