pydata/pandas — pull request #2230 by jreback (2012-11-11 21:19:09+00:00)
Title: use df[df>0] to trigger masking; add inplace keyword to where

in core/frame.py

changed method __getitem__ to use .mask directly (e.g. df.mask(df > 0) is equivalent semantically to df[df>0])

added inplace keyword to where method (to update the dataframe in place, default is NOT to use inplace, and return a new dataframe)

changed method _boolean_set_ to use where and inplace=True (this allows alignment of the passed values and is slightly less strict than the current method)

all tests pass (as well as an added test in boolean frame indexing)

if included in 0.9.1 would be great (sorry for the late addition)