Skip to content

Conversation

@vlamai
Copy link

@vlamai vlamai commented Nov 5, 2018

No description provided.

@rocketlaunchr-cto
Copy link
Contributor

I think the Head and Tail function of pandas does 2 things:

  1. Gets a subset of data from main series
  2. Prints the table to standard out.

Re 2: I believe that calling fmt is easy enough for someone to do. There doesn't need to be a new function to make that easier.

Re 1: Maybe a better option is create a new helper function similar to RangeFinite(start, end int) Range that creates the subset more easily. Alternatively, add some extra code to Range struct so that it accepts negative numbers. When negative, it knows to start from opposite end.

@rocketlaunchr-cto
Copy link
Contributor

Head and Tail functionality has been added via RangeFinite accepting negative values and/or nil.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants