I have a dataset that looks like this:
DayDate Value
19-01-01 500
19-01-02 750
19-01-03 1000
And I want to create this data:
DayDate Value IsAboveMedian
19-01-01 500 False
19-01-02 750 False
19-01-03 1000 True
How do I do that in Python, add a Boolean that is a calculation of another variable?