I\'m trying to edit a cell of a pandas dataframe with a datetimeIndex. I want to do it only if the timestamp is in the index. Here is an snippet of what I\'m trying to do :