Time series visualiser: Data cleaning Error

I’ve looked through multiple posts and threads.
One solution:
Changing test module to

def test_data_cleaning(self): actual = int(time_series_visualizer.df.shape[0]) expected = 1238 self.assertEqual(actual, expected, "Expected DataFrame count after cleaning to be 1238.")

works. I’ve tried a lot of other things, and a lot of other people have same issues, but no concrete “solution” mentioned anywhere.

Here’s the link to my repl..
Any help is appreciated. Thanks in advance.

This is a side-effect of modifying df in one of the functions. Keep in mind that README.md mentioned to no modify df and always use copy.

Thank you that helped. I had to change some variables, had used df instead of df_bar but now tests ran ok.