Page View Time Series Visualizer - Bar Plot

When I run my code Repl says there are no issues.

However when I look at my bar plot I can see that it is clearly not printing out properly.
bar_plot

In Jupyter it looks like this:
download

I am just curious as to why its not printing properly and how I could fix it.

Your code so far
https://repl.it/@PaigeCrossley/boilerplate-page-view-time-series-visualizer-7#time_series_visualizer.py

Your browser information: Google Chrome

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.182 Safari/537.36.

Challenge: Page View Time Series Visualizer

Link to the challenge:

This is a good one since the tests actually pass with invisible bars (since the test is not checking that…). The clue was that it works for May and no other month and that month is the only month that has same name and three letter short form, which is what

    df_bar['month'] = [d.strftime('%b') for d in df_bar.date]

is actually storing in your data frame. You just need to store the long name in your data frame too (there is a pandas date time method just for this) so that it matches your month labels.

2 Likes

Very interesting! Thanks for the help!

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.