Today, I split my time evenly between Coursera and debugging the Weekly Report.
During the first 30 minutes of the class, I finished the Coursera videos and began the project, which looks interesting and is coincidentally about weather conditions! During the second half of class, I worked on debugging the faulty times (see my Day 24 post for more details on the issue). I inserted "test rooms" into the data to see where they would land, re-creating the specific buggy data (November 9th was the first time a room was too cold, and the 5th was the last time) and changing it until it worked. I discovered that the issue seemed to be that I was using the np.min function -- when I isolated the function, it gave a TypeError: cannot perform reduce with flexible type. I think this means that you cannot find the minimum of two Timestamps directly. However, I have test code that does a bit more conversion work to find the minimum, so the next step is implementing that directly into the DataFrame. Comments are closed.
|
AuthorI'm a high school senior and programming enthusiast. Archives
March 2022
Categories |