Python is a very popular language because it is suitable for almost any type of data science task. And Pandas is one of the popular python-based data analysis toolkits and also provides pandas.bdate_range() function to return a fixed frequency DatetimeIndex. This function Returns a fixed frequency DatetimeIndex, with the business day(Mon to Fri) as the default frequency.
Syntax: pandas.bdate_range(start=None, end=None, periods=None, freq='B', tz=None, normalize=True, name=None, weekmask=None, holidays=None, closed=None, **kwargs)
Parameters :
start : string or datetime-like, default None.
end : string or datetime-like, default None.
periods : integer, default None.
freq : string or DateOffset, default ‘B’ (business daily).
tz : string or None.
normalize : bool, default False
name : str, default None
weekmask : str or None, default None
holidays : list-like or None, default None
Below is the implementation.