Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

find_holesV2.py 443B

12345678910111213141516
  1. from million.analyze.find_holes import find_holesV2
  2. from million.analyze.retain_counts import retain_counts
  3. from million.parse.fb_exports import FacebookExportParser
  4. DATA_PATH = './data/'
  5. parser = FacebookExportParser()
  6. export = parser.parse(DATA_PATH)
  7. filtered = retain_counts(export.messages)
  8. holes = find_holesV2(filtered)
  9. for hole in holes:
  10. print(f"{hole.start} - {hole.end} ({hole.end - hole.start})")
  11. print(hole.end_message)