pydata/pandas — Issue #889: conditional assignment raises exception
Author: jcreixell
Created: 2012-03-09 10:10:53+00:00
State: open

assignment based on a condition, something like

df[df['column']==1] = 5

raises an exception, so i have to use

df.ix[df['column']==1,'column'] = 5

or iterate through the whole DataFrame.