Advanced Data Analysis for Train Resource Planning with Python