Skip to content

Commit

Permalink
[chore] created requirements.txt file for api directory
Browse files Browse the repository at this point in the history
  • Loading branch information
deenasun committed Oct 26, 2024
1 parent c4e4c4b commit 620bea8
Show file tree
Hide file tree
Showing 10 changed files with 787 additions and 323 deletions.
Binary file modified api/webscraper/__pycache__/nyiso_scraper.cpython-312.pyc
Binary file not shown.
Binary file modified api/webscraper/__pycache__/nyserda_scraper.cpython-312.pyc
Binary file not shown.
515 changes: 403 additions & 112 deletions api/webscraper/database.py

Large diffs are not rendered by default.

7 changes: 3 additions & 4 deletions api/webscraper/nyiso_scraper.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,20 +126,20 @@ def filter_nyiso_iq_sheet():
iq_df = all_sheets[iq_key] # Interconnection Queue
iq_df = clean_df_data(iq_df)
iq_list = iq_df.to_dict(orient="records")

filtered_list = filter_nyiso_list(iq_list, "Interconnection Queue")
return filtered_list


def filter_nyiso_cluster_sheet():
all_sheets = query_nyiso_excel()
sheet_names = list(all_sheets.keys())
print(sheet_names[1])
print(all_sheets[sheet_names[1]])
cluster_projects_key = sheet_names[1]

cluster_projects_df = all_sheets[cluster_projects_key] # Cluster Projects
cluster_projects_df = clean_df_data(cluster_projects_df)
cluster_projects_list = cluster_projects_df.to_dict(orient="records")

filtered_list = filter_nyiso_list(cluster_projects_list, "Cluster Project")
return filtered_list

Expand All @@ -163,7 +163,6 @@ def filter_nyiso_in_service_sheet():
]
in_service_df = in_service_df[1:]

print(in_service_df)
in_service_df = clean_df_data(in_service_df)
in_service_dict = in_service_df.to_dict(orient="records")
filtered_list = filter_nyiso_list(in_service_dict, "In Service")
Expand All @@ -174,5 +173,5 @@ def filter_nyiso_in_service_sheet():
For testing
"""
# write_nyiso_to_json()
print(filter_nyiso_in_service_sheet())
# print(filter_nyiso_in_service_sheet())
# print(filter_nyiso_cluster_sheet())
Loading

0 comments on commit 620bea8

Please sign in to comment.