Skip to content

Commit

Permalink
Merge pull request #4068 from NicholasTurner23/update-fix/Clean_up
Browse files Browse the repository at this point in the history
Update fix/clean up
  • Loading branch information
Baalmart authored Dec 13, 2024
2 parents d8cdae1 + 44abcbc commit 549b847
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 549b847

Please sign in to comment.