I have a simple question I cant seem to find a strait answer for.
Suppose I have a data frame with date, open, high, low, close and volume.
What I am trying to do is first find the current date which I can do with:
today = pd.datetime.today().date()
My issue comes in selecting the last 20 days of data from the current date.
I need to select the last 20 rows because I need to then find the highest and lowest values in the close colum of this dataset.
Any pointers would help a lot. Iv searched google for a while and keep finding different answers.
Thanks!