Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

That's a numpy one-liner.

  np.setdiff1d(array_one, array_two)


This is completely different functionality than the parent comment's code. It's only joining on one "column", not two, and it only returns the values in that "column", while the parent's code returns complete rows from the dataframe.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: