ENH: updated based on comments from @wasade
ENH: updated based on comments from @wasade
ENH: added inplace option, True by defualt to match related functionality, such as filter
TST: tests of inplace option