SciRuby / daru

Data Analysis in RUby
BSD 2-Clause "Simplified" License
1.04k stars 139 forks source link

defined `is_values` in Index #314

Closed Shekharrajak closed 7 years ago

Shekharrajak commented 7 years ago

Fixes https://github.com/SciRuby/daru/issues/211 E.g

irb(main):004:0> d = Daru::Index.new [:one, 'one', 1, 2, :two]
=> #<Daru::Index(5): {one, one, 1, 2, two}>
irb(main):005:0> d.isin(['one', :one, 2])
=> #<Daru::Vector(5)>
     0  true
     1  true
     2 false
     3  true
     4 false
v0dro commented 7 years ago

@kozo2 can you please review this PR?

Shekharrajak commented 7 years ago

Thanks @lokeshh, for review.