Python pandas — Create a date range

Scriptopia
Dec 12, 2022

--

Python script that will use the pandas library to create a date range. This could a date range from todays date or a date range between two given dates. We are able to achieve this using the ‘date_range()’ function which will return a list of equally spaced time points.

For this example we will be creating date range from todays date, if you are interested in a Pandas date range between two given dates instead then click here.

Also be sure to subscribe to our YouTube channel for daily coding content.

https://scriptopia.co.uk/2022/12/12/python-pandas-create-a-date-range/

--

--

Scriptopia

Programming - Projects - Source Code available for everything - Scriptopia.co.uk