Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion qf_lib/analysis/tearsheets/portfolio_analysis_sheet.py
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ def _add_avg_time_in_the_market_per_ticker(self):
columns=["Tickers name", "Start time", "End time", "Position direction"])

def compute_duration(grouped_rows):
indexes = [pd.date_range(row["Start time"], row["End time"], freq='T', inclusive='left')
indexes = [pd.date_range(row["Start time"], row["End time"], freq='min', inclusive='left')
for _, row in grouped_rows.iterrows()]

if len(indexes):
Expand Down