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

Filter DataFrame Rows #21

Open
hwperkins opened this issue Oct 23, 2015 · 1 comment
Open

Filter DataFrame Rows #21

hwperkins opened this issue Oct 23, 2015 · 1 comment
Assignees
Milestone

Comments

@hwperkins
Copy link
Owner

Given a DataFrame:

a   b c
---------
foo x   y
  y x bar
baz x   y

When I execute:

$df = $df->filter(function ($row, $index) {
    return $row['a'] == 'foo' or $row['c'] == 'bar';
});

Then the DataFrame becomes:

a   b c
---------
foo x y
  y x bar
@hwperkins hwperkins self-assigned this Oct 23, 2015
@hwperkins hwperkins added this to the 0.5.0 milestone Oct 23, 2015
@mrahmadt
Copy link
Contributor

mrahmadt commented Dec 8, 2017

#22

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

2 participants