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

Add pandas .dropna equivalent #7446

Open
Gabriel-p opened this issue May 9, 2018 · 5 comments
Open

Add pandas .dropna equivalent #7446

Gabriel-p opened this issue May 9, 2018 · 5 comments

Comments

@Gabriel-p
Copy link
Contributor

There is apparently no easy way to drop rows with masked values (as explained in https://stackoverflow.com/q/50256012/1391441).

A dropna equivalent should be added.

@pllim
Copy link
Member

pllim commented May 9, 2018

For now... maybe this?

>>> df = t.to_pandas()
>>> df.dropna()
>>> t2 = Table.from_pandas(df)

@Gabriel-p
Copy link
Contributor Author

Gabriel-p commented May 9, 2018

Yes, but that forces me to have pandas installed. I want my code to depend on the smallest number of packages possible.

@moon05
Copy link

moon05 commented Feb 26, 2019

@pllim Hi! Are you taking care of this? I was just curious if pretty much having a function with what literally one of the SO answers are stating would work? Since functools and itertools are already imported in ascii that seems like the easiest way to go? Or are there other things to be wary of here? I was thinking of giving this a go, but wanted to make sure that what I am thinking is in right path.

@bsipocz
Copy link
Member

bsipocz commented Feb 27, 2019

@moon05 - I'm sure @pllim is not working actively on this, you're most welcome to open a PR with a prototype solution and get the discussion going in there.

@moon05
Copy link

moon05 commented Feb 28, 2019

@bsipocz thanks! I will open a PR tonight hopefully.

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