Skip to content

[Issue]: PortfolioAnalysisSheet uses deprecated 'T' frequency string in pd.date_range #246

@myrmarachne

Description

@myrmarachne

Summary

Environment

  • QF-Lib: 4.0.4
  • Python: 3.11.9
  • pandas: 2.2.3

What happened?

When running scripts that generate tearsheets, multiple FutureWarnings are displayed:

qf-lib\qf_lib\analysis\tearsheets\portfolio_analysis_sheet.py:251: FutureWarning: 'T' is deprecated and will be removed in a future version, please use 'min' instead.                                                             
  indexes = [pd.date_range(row["Start time"], row["End time"], freq='T', inclusive='left')

The warning appears multiple times (once for each row processed) when pd.date_range() is called with freq='T'.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions