Skip to content

Commit

Permalink
mypy stats_utils
Browse files Browse the repository at this point in the history
  • Loading branch information
paulzierep committed Jan 25, 2024
1 parent 7bbc347 commit 2ea95ed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions data/usage_stats/stats_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@
tool_stats_path = project_path.joinpath(project_path, "tool_usage.csv")

tool_stats_df = pd.read_csv(tool_stats_path, sep=",")
tool_stats_df.columns = ["tool_name", "count"]
tool_stats_df.columns = pd.Index(["tool_name", "count"])


def remove_version(val):
def remove_version(val: str) -> str:
if "/" in val:
split_val = val.split("/")
val = "/".join(split_val[:-1])
Expand Down

0 comments on commit 2ea95ed

Please sign in to comment.