C4W1_Assignment results in error: name 'series_valid' is not defined

hi @sergei13

please check below link to debug your codes

Let me know what is the progress.

Regards
DP