Data Analysis with Python Projects - Page View Time Series Visualizer

Tell us what’s happening:

I am supposed to visualize a line chart, bar chart, and box plot and they are supposed to look like the figures 1, 2 and 3 under the examples folder in my file tab. Right now, I can only visualize the line chart but my code for my bar, and box plots refuse to work.

Please help me figure out the issue.

Your code so far

https://replit.com/join/tkosghjsvx-sylviaifeomaozo

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36

Challenge Information:

Data Analysis with Python Projects - Page View Time Series Visualizer

Comment out plt.show() that will kill your RAM and might cause the program to hang. savefig will still give you an image to look at.

I also commented these from main.py:

# Test your function by calling it here
#time_series_visualizer.draw_line_plot()
#time_series_visualizer.draw_bar_plot()
#time_series_visualizer.draw_box_plot()

# Run unit tests automatically
main(module='test_module', exit=False)

And I was able to run the tests but it was still slow and maxing out the RAM. I’m not sure if it’s an issue of shared resources being busier at certain times. I was able to generate bar_plot and line_plot and run the tests:

Ran 11 tests in 155.725s

FAILED (failures=4, errors=4)

Some of these are easy solves:

AssertionError: 'Year' != 'Years'
- Year
+ Years
?     +
 : Expected bar plot xlabel to be 'Years'