#To change the number of days created change the number of periods ten_days = pd.date_range(start='2021-7-26', periods=10) print(ten_days)
Here is what the above code is Doing:
1. We’re creating a date range using the pd.date_range() function.
2. We’re setting the start date to 2021-7-26.
3. We’re setting the number of periods to 10.
4. We’re printing the date range.