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

Daru::DataFrame#delete_rows #497

Open
kojix2 opened this issue Mar 5, 2019 · 5 comments
Open

Daru::DataFrame#delete_rows #497

kojix2 opened this issue Mar 5, 2019 · 5 comments

Comments

@kojix2
Copy link
Member

kojix2 commented Mar 5, 2019

[enhancement / question]

It is strange that the delete_rows method is not implemented in Daru::DataFrame.
Anything I’m missing?
Please let me know if you know how to delete multiple rows.

@Shekharrajak
Copy link
Member

I think, we have delete_row method to delete a row by passing the index. But yes, deleting multiple rows is not exist.

@MihirGH
Copy link

MihirGH commented Mar 16, 2019

@Shekharrajak
In the purview of GSOC'19, I would like to contribute to DARu.
I would like to start this by working on this issue.
Can you please guide me for this?
Thanks 😄

@athityakumar
Copy link
Member

Hey @MihirGH!

For this specific case, you can have a look at this #delete_row method that is already implemented. You'll need to implement a similar #delete_rows method, that will call the existing #delete_row method multiple times.

You'll also have to write inline documentation & unit-tests: I'll probably mention more about them when you open a PR. 😄

@MihirGH
Copy link

MihirGH commented Mar 17, 2019

What should the interface of delete_rows should be like? @athityakumar @Shekharrajak
It should accept a start index and an end index (optional)?
If the end index is not specified then it should just delete all the rows mentioned from the start index?

@Shekharrajak
Copy link
Member

@MihirGH , I think the list of indexes (i.e. if the index is :a, :b, :c, :d , then user should be able to delete :b, :d so user has to pass [:b, :d]). It can or can't be order. What do you think ? Do you find similar API already present in daru?

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

No branches or pull requests

4 participants