Custom statistics for Anki flashcard reviews

How to export your Anki review history and analyze it with pandas to get custom statistics like median session length, seconds per card, and more.