Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bus Cost Analysis Refactor 2 #1175

Merged
merged 17 commits into from
Jul 12, 2024
Merged
Changes from 1 commit
Commits
Show all changes
17 commits
Select commit Hold shift + click to select a range
34791cc
minor updates to narrative. experimenting with exporting to pdf and html
csuyat-dot Jul 2, 2024
b81c2bd
testing weasyprint to export NB to pdf
csuyat-dot Jul 2, 2024
b43c380
still experimenting converting NB > HTML > PDF using nbconvert and we…
csuyat-dot Jul 3, 2024
cc43299
final attempt at converting NB to pdf. also testing papermill and nbc…
csuyat-dot Jul 8, 2024
37c1c12
edited and renamed weasyprint files
csuyat-dot Jul 8, 2024
770fe50
testing LaTex page break. got page break to work with straight nbconv…
csuyat-dot Jul 8, 2024
07ab332
tested papermill and LaTex but ended up using weasyprint and <br> tag…
csuyat-dot Jul 9, 2024
4686e2c
renamed files in pseudo-chronilogical order, updated Makefile
csuyat-dot Jul 10, 2024
17822c5
renamed files again to a working syntax. updated makefile, ran makefi…
csuyat-dot Jul 10, 2024
c456f70
tested refactored outlier flag function. added updated func to affect…
csuyat-dot Jul 10, 2024
eb1b777
fixed keyerror. ran Makefile and everything is running well
csuyat-dot Jul 10, 2024
824a757
added new column for # of projects to pivot_source table
csuyat-dot Jul 10, 2024
781d04f
created a new agg function that also returns the count of projects an…
csuyat-dot Jul 11, 2024
c97266d
more changes to NB from feedback
csuyat-dot Jul 11, 2024
26a0b82
final addtions and edits: appendix, removed dupe tables, expanded int…
csuyat-dot Jul 12, 2024
7e90fa8
fixed the spacing of the final NB, Makefile is running/producing the …
csuyat-dot Jul 12, 2024
101d8a5
updated readme, ran make file, deleted blank front page of pdf, delet…
csuyat-dot Jul 12, 2024
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
Prev Previous commit
Next Next commit
renamed files in pseudo-chronilogical order, updated Makefile
  • Loading branch information
csuyat-dot committed Jul 10, 2024
commit 4686e2cdac853c2ec49bc83ea0801ef6f64e9675
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
14 changes: 7 additions & 7 deletions bus_procurement_cost/Makefile
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# runs all scripts for bus procurement cost
all_bus_scripts:
python fta_data_cleaner.py
python tircp_data_cleaner.py
python dgs_data_cleaner.py
python cost_per_bus_cleaner.py
python 01_fta_data_cleaner.py
python 02_tircp_data_cleaner.py
python 03_dgs_data_cleaner.py
python 04_cost_per_bus_cleaner.py

#execute NB
jupyter nbconvert --to notebook --execute --inplace cost_per_bus_analysis.ipynb
jupyter nbconvert --to notebook --execute --inplace 05_cost_per_bus_analysis.ipynb

#convert NB to HTML then to PDF
jupyter nbconvert --to html --no-input --no-prompt cost_per_bus_analysis.ipynb
weasyprint cost_per_bus_analysis.html cost_per_bus_analysis_weasyprint.pdf
jupyter nbconvert --to html --no-input --no-prompt 05_cost_per_bus_analysis.ipynb
weasyprint 05_cost_per_bus_analysis.html cost_per_bus_analysis_weasyprint.pdf