qis.get_time_period_label

qis.get_time_period_label(data, date_separator=':', is_increase_by_one_day=False, date_format='%d%b%Y')[source]

the date range of a frame’s index, formatted for a chart title or a table header.

Parameters:
  • data (DataFrame) – frame whose first and last index entries bound the label

  • date_separator (str) – string between the two dates

  • is_increase_by_one_day (bool) – add a day to the end date. Use it where the period is quoted with an exclusive end, so that a month-end panel reads to the first of the next month

  • date_format (str) – strftime format for both dates

Returns:

the formatted range, e.g. 31Dec2019:31Dec2024

Return type:

str