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

Commit

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

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

0 comments on commit 3db59d0

Please sign in to comment.