Skip to content
This repository has been archived by the owner on Feb 14, 2024. It is now read-only.

Commit

Permalink
Move LGTM suppression comment
Browse files Browse the repository at this point in the history
  • Loading branch information
jsf9k committed May 10, 2022
1 parent 3db59d0 commit 64bd95d
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions src/pe_reports/metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,8 @@ def by_days(self):
.rename_axis("added_date")
)
group_limit = self.end_date + datetime.timedelta(1)
df = df.groupby(
pd.Grouper( # lgtm [py/call/wrong-named-class-argument]
level="added_date", freq="7d", origin=group_limit
)
df = df.groupby( # lgtm [py/call/wrong-named-class-argument]
pd.Grouper(level="added_date", freq="7d", origin=group_limit)
).sum()
df["modified_date"] = df.index
df["modified_date"] = df["modified_date"].dt.strftime("%m/%d")
Expand Down Expand Up @@ -486,11 +484,11 @@ def dark_web_date(self):
)

group_limit = self.end_date + datetime.timedelta(1)
dark_web_date = dark_web_date.groupby(
pd.Grouper( # lgtm [py/call/wrong-named-class-argument]
level="date", freq="7d", origin=group_limit
)
).sum()
dark_web_date = ( # lgtm [py/call/wrong-named-class-argument]
dark_web_date.groupby(
pd.Grouper(level="date", freq="7d", origin=group_limit)
).sum()
)
dark_web_date["date"] = dark_web_date.index
dark_web_date["date"] = dark_web_date["date"].dt.strftime("%m/%d")
dark_web_date = dark_web_date.set_index("date")
Expand Down

0 comments on commit 64bd95d

Please sign in to comment.