import pandas as pd def read_log(log_file): data = pd.read_csv(log_file, delimiter=";") grouped = data.groupby(data.ID) return grouped