Created
August 16, 2019 21:12
-
-
Save norbinsh/e56becfaef077df2790c48c9566507a4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from collections import Counter | |
with open("x.txt", "r") as rf: | |
lines = rf.readlines() | |
Counter(list(map(lambda x: x.split("From ")[1].split(":")[0], list(filter(lambda x: x.startswith("From "), lines))))) | |
""" | |
From 05:20:34 | |
From 05:20:34 | |
From 05:20:34 | |
From 05:20:34 | |
From 05:20:35 | |
From 05:20:35 | |
From 05:20:35 | |
From 05:20:35 | |
From 05:20:35 | |
From 05:20:35 | |
From 07:29:35 | |
From 07:29:35 | |
From 07:29:35 | |
From 07:29:35 | |
From 07:29:35 | |
From 07:29:35 | |
From 07:29:35 | |
From 09:30:22 | |
10:05:05 | |
""" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment