You can make api calls to download your games month by month : Documentation here :
https://www.chess.com/news/view/published-data-api#pubapi-endpoint-games
Please note that, with the servers overload, it is nice to not overcharge the system by hundreds or thousands of queries.
Is there any way I can download my past game data? I need it for a personal data science project. If there's a way, how can i do it? I'm just a beginner in this field, so I'd really appreciate some pointers.