'Error: index object has no atttribte tz_convert

So I had to implement a function that reads in data from the opensensemap of arduino and then I should make a diagram with .plot() and show(). The problem is that I get an error that says that the 'index' object has no attribute 'tz_convert'. The code is from university and normally I should not have to change it.

enter image description here



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source