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 treelib import Tree | |
from os import walk | |
try: # python 3+ | |
from pathlib import Path | |
except ImportError: | |
from pathlib2 import Path | |
def get_fs_tree(start_path, # type: str |
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
""" | |
An experiment comparing the various timers available on the python platform. | |
For each available timer (see `TIMER_METHODS` below), the following experiment is run: | |
- spawn `nb_processes` parallel processes | |
- each process performs a `for` loop with `nb_occ` iterations. | |
- each iteration uses the timer to measure the execution time around a `time.sleep(sleep_duration)` call | |
All experiments are run in sequence, one after the other. | |
The results are displayed as boxplots using matplotlib. |
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
import pandas as pd | |
import matplotlib.pyplot as plt | |
# --------------- You may need to change this ------------- | |
file_name = "meetingAttendanceList.csv" | |
user_fullname_colname = "Nom complet" | |
user_action_colname = "Action de l’utilisateur" | |
joined_text = "Rejoint" | |
left_text = "A quitté l'appel" | |
date_and_time_colname = "Date et heure" |