MCPcopy Create free account
hub / github.com/LaihoE/Python-demoparser / round_stats

Function round_stats

examples/per_round_stats/round_stats_parallel.py:8–17  ·  view source on GitHub ↗
(file)

Source from the content-addressed store, hash-verified

6
7
8def round_stats(file):
9
10 wanted_player = 76561197991348083
11 parser = DemoParser(file)
12
13 df = parser.parse_ticks(["total_damage", "mvps", "round"])
14 df = df[df["steamid"] == wanted_player]
15 df = df.loc[:, ["total_damage", "mvps", "round"]]
16 df = df.drop_duplicates()
17 return df
18
19
20if __name__ == "__main__":

Callers

nothing calls this directly

Calls 2

parse_ticksMethod · 0.95
DemoParserClass · 0.85

Tested by

no test coverage detected