Skip to content

Commit

Permalink
run portfolio without delay
Browse files Browse the repository at this point in the history
  • Loading branch information
tiffanychu90 committed Aug 4, 2023
1 parent 13a73f3 commit 88f67c6
Show file tree
Hide file tree
Showing 6 changed files with 92 additions and 525 deletions.
Git LFS file not shown
Git LFS file not shown
1 change: 1 addition & 0 deletions portfolio/quarterly_performance_metrics/_toc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@ format: jb-book
parts:
- caption: null
chapters:
- file: 0__current_quarter_report__.ipynb
- file: 0__historical_service_hours_v2__.ipynb
root: README
2 changes: 1 addition & 1 deletion portfolio/sites/quarterly_performance_metrics.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ readme: ./quarterly_performance_objective/README.md
parts:
- caption: Introduction
- chapters:
#- notebook: ./quarterly_performance_objective/current_quarter_report.ipynb
- notebook: ./quarterly_performance_objective/current_quarter_report.ipynb
- notebook: ./quarterly_performance_objective/historical_service_hours_v2.ipynb
#- notebook: ./quarterly_performance_objective/historical_report.ipynb
6 changes: 3 additions & 3 deletions quarterly_performance_objective/C1_report_metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,18 +134,18 @@ def by_district_on_shn_breakdown(df: pd.DataFrame,
def prep_data_for_report(analysis_date: str) -> gpd.GeoDataFrame:
# https://stackoverflow.com/questions/69781678/intake-catalogue-level-parameters

df = catalog.routes_categorized_with_delay(
df = catalog.routes_categorized(
analysis_date = analysis_date).read()

# TODO: Some interest in excluding modes like rail from District 4
# Don't have route_type...but maybe we want to exclude rail

'''
df = df.assign(
delay_hours = round(df.delay_seconds / 60 ** 2, 2)
).drop(columns = "delay_seconds")
df = df[df.merge_delay != "right_only"].reset_index(drop=True)

'''
return df


Expand Down
Loading

0 comments on commit 88f67c6

Please sign in to comment.