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

rows selection enhanced #44

Closed
genmeblog opened this issue Apr 23, 2020 · 4 comments
Closed

rows selection enhanced #44

genmeblog opened this issue Apr 23, 2020 · 4 comments
Assignees

Comments

@genmeblog
Copy link

genmeblog commented Apr 23, 2020

I can imagine such helper functions:

  1. head - select first n rows (equivalent to (select-rows (range n))
  2. tail - select last n rows
  3. sample - return n random rows (with repetitions or not)
  4. shuffle (permute) dataset
  5. unique (whole dataset) by rows
@cnuernber cnuernber self-assigned this Apr 25, 2020
@cnuernber
Copy link
Collaborator

Unique is hardcore - you mean something like keep every row in a set and don't allow repeat rows or do you mean unique-by-column(s)?
head,tail,sample,shuffle, (rand-nth), all of those make sense.

@cnuernber
Copy link
Collaborator

Leaving unique/distinct for later as I think that one requires a bit more discussion.

@genmeblog
Copy link
Author

Unique - removing row duplicates in whole dataset. But it's not urgent :)

@harold
Copy link
Contributor

harold commented Apr 26, 2020

There is also Pandas' drop_duplicates, which I've needed in the past: https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.drop_duplicates.html

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

No branches or pull requests

3 participants