generate dates between two dates python 1

generate dates between two dates python

import pandas
pandas.date_range(sdate,edate-timedelta(days=1),freq='d')

Here is what the above code is Doing:
1. We are creating a list of dates from sdate to edate-timedelta(days=1)
2. We are using the pandas.date_range function to create a list of dates
3. We are using the freq=’d’ to tell the function that we want the frequency to be daily.
4. We are using the pandas.date_range function to create a list of dates
5. We are using the freq=’d’ to tell the function that we want the frequency to be daily.

Similar Posts