I have the following lines:
lowerTime = minuteDF.iloc[0]['timestamp']
print(lowerTime)
print(minuteDF.iloc[0]['timestamp'])
print(lowerTime == minuteDF.iloc[0]['timestamp'])
print(lowerTime in minuteDF['timestamp'])
which outputs:
2017-12-12 14:30:00
2017-12-12 14:30:00
True
False
Why is the last line false? How can I get it to equate to true?
I believe it is a problem related to pandas sometimes converting between numpy and python datetime objects, or something along those lines.
Edit:
print(lowerTime in minuteDF['timestamp'].values)
also equates to False
.