import pandas as pd
import mysqlslowlog
df = mysqlslowlog.read('slowlog/mariadb-slow.log',save_sql=False)
print(df.head(5))
print(df.dtypes)
or View example jupter notebook
pt-query-digest - it's a pretty old program. Unlike this module, it can group requests by similarity.