Previous topic


Next topic


This Page


adjust_endpoints(a, start_date=None, end_date=None, copy=False)

Returns a TimeSeries going from start_date to end_date.


a : TimeSeries

TimeSeries object whose dates must be adjusted

start_date : Date, optional

New starting date. If not specified, the current starting date is used.

end_date : Date, optional

New ending date. If not specified, the current ending date is used.

copy : {False, True}, optional

Whether to return a copy of the initial array (True) or a reference to the array (False), in the case where both the start_date and end_date both fall into the initial range of dates.