Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dataframe.go #31

Closed
wants to merge 1 commit into from
Closed

Dataframe.go #31

wants to merge 1 commit into from

Conversation

vikram-rawat
Copy link

/*this function will help to give arguments to df.subset() and df.select() functions
like df.subset(Slice(1,10)) will bring 10 rows from the set
*/

/*this function will help to give arguments to df.subset() and df.select() functions
like df.subset(Slice(1,10)) will bring 10 rows from the set
*/
@kniren
Copy link
Collaborator

kniren commented Jun 17, 2017

I very much appreciate your contribution, however this seems to be outside of the scope of this library, as it is only returning a range of integers.

Best,
Alex

@kniren kniren closed this Jun 17, 2017
@vikram-rawat
Copy link
Author

vikram-rawat commented Jun 19, 2017 via email

@kniren
Copy link
Collaborator

kniren commented Jun 19, 2017

I can understand your point, in fact in a previous version of the code something similar was implemented to obtain ranges and sequences of int. However, I believe that a useful library should do as much as necessary and not more. In this case, anyone can implement a simple range function to return which integers one does need.

Another problem that I see is that the API design is not very representative, that is, calling dataframe.Slice seems a bit misleading on what to expect. Something like dataframe.Range or dataframe.Sequence looks more appropriate.

Maybe in the future we could create a complementary package within this framework that could address some of these helpers functions, but right now it seems a bit overkill and an unnecessary complexity added to the API.

Once again, I appreciate your input and encourage you to keep contributing. Make sure that if you do so, your code is tested, the target merge is at dev branch, the go test, golint, go vet pass, and you adhere to the same formatting and style of the rest of the code.

Best,
Alex

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants