'how to "transpose" datas from a date to another one in python

Sorry i had a lot of trouble explaining my problem in the title but i hope it will be more understandable with this example :

i have a data source that tells me that they are planning an expected quantity for some products for the 06th may, i am trying to work on a stock simulation update, and here is the output of the script when we add the expected receptions :

enter image description here

is it possible for me to make this expected quantity appears on the forecast date of the 5th may instead of the 6th ?

With this input :

expected_receptions_with_forecast_dates["wanted_delivery_date"] = expected_receptions_with_forecast_dates["wanted_delivery_date"] - dt.timedelta(days=1)

i managed to have this output :

enter image description here

i managed to have my data in the 5th of may but i would like to delete it from the 6th of may

Hope i was clear enough, thanks !



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source