Skip to content

Commit

Permalink
Just some cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
NicholasTurner23 committed Dec 13, 2024
1 parent 8c75b3d commit 5a2ac8d
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/analytics/api/views/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,11 +163,14 @@ def post(self):
)
if minimum_output:
# Drop unnecessary columns
columns_to_drop = ["site_id"]
columns_to_drop.append("timestamp") if frequency in [
"hourly",
"daily",
] else columns_to_drop
print(data_frame.columns.to_list())
data_frame.drop(
columns=[
"site_id",
"timestamp",
],
columns=columns_to_drop,
inplace=True,
)

Expand Down

0 comments on commit 5a2ac8d

Please sign in to comment.