I have a large dataframe which looks as:
df1[\'A\'].ix[1:3] 2017-01-01 02:00:00 [33, 34, 39] 2017-01-01 03:00:00 [3, 43, 9]
I want to
You can use numpy indexing, accessed through the .values function.
.values
df['col'].values[df['col'].values > x] = y
where you are replacing any value greater than x with the value of y.
So for the example in the question:
df1['A'].values[df1['A'] > 9] = 11