As I believe someone also reported in this thread, filling in a dataframe using iterrows()
can result in persistence problems. E.g. something as simple as:
my_dataframe = pd.DataFrame(np.NaN, index = xrange(5),columns=['foo', 'bar'])
for ix, row in my_dataframe.iterrows():
row['foo'] = 'Hello'
results in no changes to the dataframe:
> my_dataframe
foo bar
0 NaN NaN
1 NaN NaN
2 NaN NaN
3 NaN NaN
4 NaN NaN
And I got no warnings, no exceptions, etc. Is this intended? Is it a bug? Intended? What exactly is happening?
The above is with the latest stable version of Pandas, 0.13.1.