I have a dataframe where the index is a date (daily, skipping weekends). This data are downloaded from an API for further financial analysis however the analysis/code only runs when the last day in the date index is an end of month, if not I would like the code to find the end of month and fill the dataframe from the todays date to the end of month date by using the last available value of each column.
so I have:
Date Value
... ...
2020-06-23 7
2020-06-24 7.1
2020-06-25 7
2020-06-26 7.3 (assume today)
what I want is:
Date Value
... ...
2020-06-23 7
2020-06-24 7.1
2020-06-25 7
2020-06-26 7.3
2020-06-29 7.3
2020-06-30 7.3
skipping the weekends. Thanks. Luigi