Data Analysis with Python Projects - Page View Time Series Visualizer

Tell us what’s happening:

Bar chart is correct, but it’s saying " 57 != 49 : Expected a different number of bars in bar chart."

The bar chart looks very similar like the main chart, especially with the numbering. I don’t know why it’s saying that. It literary looks the same, except the coloring.

Your code so far

def draw_bar_plot():
    # Copy and modify data for monthly bar plot
    df_bar = df.copy()

    df_bar['Years'] = pd.to_datetime(df_bar.index.values).year
    df_bar['Months'] = pd.DatetimeIndex(df_bar.index.values).month_name()

    print(df_bar)

    df_bar = df_bar.groupby(['Years','Months'], sort=False, as_index=False).mean()
    print(df_bar)
    
    df_bar['Months'] = pd.Categorical(df_bar.Months, categories=df_bar[df_bar.Years == 2017].Months, ordered=True)
    print(df_bar)

    # Draw bar plot
    fig, axes = plt.subplots(figsize=(16,8))
    sns.barplot(data=df_bar, x='Years', y='value', hue='Months', ax=axes)
    axes.set_ylabel('Average Page Views')



    # Save image and return fig (don't change this part)
    fig.savefig('bar_plot.png')
    return fig

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:128.0) Gecko/20100101 Firefox/128.0

Challenge Information:

Data Analysis with Python Projects - Page View Time Series Visualizer

Can you provide more details about index and value columns?

Hello. Yes:

  • This is the main df with no modifications
    image

  • This is the df_bar after the groupby from the code provided up (not all values cause it’s a bit long):

Lmk if you need anything more. The print after categorical shows the same as the one after groupby, so didn’t need to share. I just had it there to see if there was any change.

If you look closely it’s not exactly the same.

The example chart the last two bars in 2019 are Jan, Feb.

In your chart the last two bars in 2019 are Nov, Dec, although the heights appear correct. Did you maybe remap the months incorrectly?

This colour scheme also makes it a bit difficult to determine which month is which when they are close together.

Oh. Let me see the sorting then and I’ll get back to you

I’ll also change the colors and widths of the bars to make it easier to read

Strangely, Jan, Feb, Nov and Dec have same/similar colors. Or am I not reading it correctly?
image
image

Wow, good catch! Maybe we can ignore that point for now then.

I’ve tested this in my own project and this function is good :white_check_mark:

Maybe the problem is earlier, in your cleanup.

Can you share the beginning of your code before the line plot?

For sure! I’ll send it here either in a couple of hours or tomorrow

Great to hear that it’s correct, hopefully I can sort this small difference out cause the test is not passing. Won’t get the certification. I’ll reply to your text when sending

Here’s the code before the draw_line_plot function:

import matplotlib.pyplot as plt
import pandas as pd
import seaborn as sns
import datetime
from pandas.plotting import register_matplotlib_converters
register_matplotlib_converters()

# Import data (Make sure to parse dates. Consider setting index column to 'date'.)
df = pd.read_csv("fcc-forum-pageviews.csv", parse_dates=['date'], index_col='date')

# Clean data
df = df[(df.value >= df.value.quantile(0.025)) &
        (df['value'] <= df['value'].quantile(0.975))]

Cannot replicate your error.

Can you share your Pandas version?

print(pd.__version__)

And share your full code?

image

import matplotlib.pyplot as plt
import pandas as pd
import seaborn as sns
import datetime
from pandas.plotting import register_matplotlib_converters
register_matplotlib_converters()

# Import data (Make sure to parse dates. Consider setting index column to 'date'.)
df = pd.read_csv("fcc-forum-pageviews.csv", parse_dates=['date'], index_col='date')

# Clean data
df = df[(df.value >= df.value.quantile(0.025)) &
        (df['value'] <= df['value'].quantile(0.975))]


def draw_line_plot():
    # Draw line plot
    fig,axes = plt.subplots(figsize=(24,8))

    axes.plot(df.index.values, 'value', data=df, color='r')
    axes.set_title("Daily freeCodeCamp Forum Page Views 5/2016-12/2019")
    axes.set_xlabel("Date")
    axes.set_ylabel("Page Views")


    # Save image and return fig (don't change this part)
    fig.savefig('line_plot.png')
    return fig

def draw_bar_plot():
    # Copy and modify data for monthly bar plot
    df_bar = df.copy()
    print(df_bar)
    
    # We are creating a new column for Years, and using pd.to_datetime to covnerts dates to a proper
    # date format and then we are using .year to convert the dates to show only the years.
    df_bar['Years'] = pd.to_datetime(df_bar.index.values).year
    df_bar['Months'] = pd.DatetimeIndex(df_bar.index.values).month_name()

    # we need to disable sort so the months would be ordered correctly, because it's sorting them 
    # alphabetically and we are having wrong order of the months.
    df_bar = df_bar.groupby(['Years','Months'], sort=False, as_index=False).mean()
    print(df_bar)
    
    df_bar['Months'] = pd.Categorical(df_bar.Months, categories=df_bar[df_bar.Years == 2017].Months, ordered=True)
    print(df_bar)

    # Draw bar plot
    fig, axes = plt.subplots(figsize=(16,8))
    sns.barplot(data=df_bar, x='Years', y='value', hue='Months', ax=axes)
    axes.set_ylabel('Average Page Views')



    # Save image and return fig (don't change this part)
    fig.savefig('bar_plot.png')
    return fig

def draw_box_plot():
    # Prepare data for box plots (this part is done!)
    df_box = df.copy()
    df_box.reset_index(inplace=True)
    df_box['year'] = [d.year for d in df_box.date]
    df_box['month'] = [d.strftime('%b') for d in df_box.date]

    # Draw box plots (using Seaborn)
    


    # Save image and return fig (don't change this part)
    fig.savefig('box_plot.png')
    return fig

draw_bar_plot()

Cannot replicate your error on Pandas 2.0.1

Sometimes the tests are written for older versions and something changes that breaks it. I would suggest installing Pandas 2.0.1 to test this.

Okay I’ll try with that version. I did
pip install pandas==2.0.1

it’s being stuck on
Getting requirements to build wheel ...

I’ll try tomorrow maybe the wifi is slow atm, and I’ll update here accordingly.

I upgraded to Pandas 2.2.2 and still unable to replicate. Can you check your Python version?

>python --version
Python 3.10.8

Where are you running this? Locally or on replit?

Python version is 3.12.4

I am running it locally since it’s faster in my case.

Try downgrading to 3.10.8?

I don’t understand what’s happening, I installed Python version 3.10.8 and uninstalled the other one. The other 4 errors are not related, I didn’t do the box plot yet.

Hoping to find a solution to this problem, since it’s the only failure I have

There is a serious issue on gitpod with the requirements txt

I should be able to do this locally and copy paste the code and run on gitpod, first time I am getting a different numbr of errors.

image

Limited to old versions. Even though my answer is correct, I’m getting errors.

======================================================================
ERROR: test_bar_plot_labels (__main__.BarPlotTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/workspace/boilerplate-page-view-time-series-visualizer/test_module.py", line 37, in setUp
    self.fig = time_series_visualizer.draw_bar_plot()
  File "/workspace/boilerplate-page-view-time-series-visualizer/time_series_visualizer.py", line 59, in draw_bar_plot
    sns.barplot(data=df_bar, x='Years', y='value', hue='Months', ax=axes)
  File "/workspace/boilerplate-page-view-time-series-visualizer/.venv/lib/python3.8/site-packages/seaborn/categorical.py", line 3146, in barplot
    plotter = _BarPlotter(x, y, hue, data, order, hue_order,
  File "/workspace/boilerplate-page-view-time-series-visualizer/.venv/lib/python3.8/site-packages/seaborn/categorical.py", line 1606, in __init__
    self.establish_variables(x, y, hue, data, orient,
  File "/workspace/boilerplate-page-view-time-series-visualizer/.venv/lib/python3.8/site-packages/seaborn/categorical.py", line 158, in establish_variables
    orient = self.infer_orient(x, y, orient)
  File "/workspace/boilerplate-page-view-time-series-visualizer/.venv/lib/python3.8/site-packages/seaborn/categorical.py", line 359, in infer_orient
    elif is_not_numeric(y):
  File "/workspace/boilerplate-page-view-time-series-visualizer/.venv/lib/python3.8/site-packages/seaborn/categorical.py", line 339, in is_not_numeric
    np.asarray(s, dtype=np.float)
  File "/workspace/boilerplate-page-view-time-series-visualizer/.venv/lib/python3.8/site-packages/numpy/__init__.py", line 305, in __getattr__
    raise AttributeError(__former_attrs__[attr])
AttributeError: module 'numpy' has no attribute 'float'.
`np.float` was a deprecated alias for the builtin `float`. To avoid this error in existing code, use `float` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.float64` here.
The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at:
    https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations

======================================================================
ERROR: test_bar_plot_legend_labels (__main__.BarPlotTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/workspace/boilerplate-page-view-time-series-visualizer/test_module.py", line 37, in setUp
    self.fig = time_series_visualizer.draw_bar_plot()
  File "/workspace/boilerplate-page-view-time-series-visualizer/time_series_visualizer.py", line 59, in draw_bar_plot
    sns.barplot(data=df_bar, x='Years', y='value', hue='Months', ax=axes)
  File "/workspace/boilerplate-page-view-time-series-visualizer/.venv/lib/python3.8/site-packages/seaborn/categorical.py", line 3146, in barplot
    plotter = _BarPlotter(x, y, hue, data, order, hue_order,
  File "/workspace/boilerplate-page-view-time-series-visualizer/.venv/lib/python3.8/site-packages/seaborn/categorical.py", line 1606, in __init__
    self.establish_variables(x, y, hue, data, orient,
  File "/workspace/boilerplate-page-view-time-series-visualizer/.venv/lib/python3.8/site-packages/seaborn/categorical.py", line 158, in establish_variables
    orient = self.infer_orient(x, y, orient)
  File "/workspace/boilerplate-page-view-time-series-visualizer/.venv/lib/python3.8/site-packages/seaborn/categorical.py", line 359, in infer_orient
    elif is_not_numeric(y):
  File "/workspace/boilerplate-page-view-time-series-visualizer/.venv/lib/python3.8/site-packages/seaborn/categorical.py", line 339, in is_not_numeric
    np.asarray(s, dtype=np.float)
  File "/workspace/boilerplate-page-view-time-series-visualizer/.venv/lib/python3.8/site-packages/numpy/__init__.py", line 305, in __getattr__
    raise AttributeError(__former_attrs__[attr])
AttributeError: module 'numpy' has no attribute 'float'.
`np.float` was a deprecated alias for the builtin `float`. To avoid this error in existing code, use `float` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.float64` here.
The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at:
    https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations

======================================================================
ERROR: test_bar_plot_number_of_bars (__main__.BarPlotTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/workspace/boilerplate-page-view-time-series-visualizer/test_module.py", line 37, in setUp
    self.fig = time_series_visualizer.draw_bar_plot()
  File "/workspace/boilerplate-page-view-time-series-visualizer/time_series_visualizer.py", line 59, in draw_bar_plot
    sns.barplot(data=df_bar, x='Years', y='value', hue='Months', ax=axes)
  File "/workspace/boilerplate-page-view-time-series-visualizer/.venv/lib/python3.8/site-packages/seaborn/categorical.py", line 3146, in barplot
    plotter = _BarPlotter(x, y, hue, data, order, hue_order,
  File "/workspace/boilerplate-page-view-time-series-visualizer/.venv/lib/python3.8/site-packages/seaborn/categorical.py", line 1606, in __init__
    self.establish_variables(x, y, hue, data, orient,
  File "/workspace/boilerplate-page-view-time-series-visualizer/.venv/lib/python3.8/site-packages/seaborn/categorical.py", line 158, in establish_variables
    orient = self.infer_orient(x, y, orient)
  File "/workspace/boilerplate-page-view-time-series-visualizer/.venv/lib/python3.8/site-packages/seaborn/categorical.py", line 359, in infer_orient
    elif is_not_numeric(y):
  File "/workspace/boilerplate-page-view-time-series-visualizer/.venv/lib/python3.8/site-packages/seaborn/categorical.py", line 339, in is_not_numeric
    np.asarray(s, dtype=np.float)
  File "/workspace/boilerplate-page-view-time-series-visualizer/.venv/lib/python3.8/site-packages/numpy/__init__.py", line 305, in __getattr__
    raise AttributeError(__former_attrs__[attr])
AttributeError: module 'numpy' has no attribute 'float'.
`np.float` was a deprecated alias for the builtin `float`. To avoid this error in existing code, use `float` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.float64` here.
The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at:
    https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations

======================================================================
ERROR: test_box_plot_labels (__main__.BoxPlotTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/workspace/boilerplate-page-view-time-series-visualizer/test_module.py", line 68, in setUp
    self.fig = time_series_visualizer.draw_box_plot()
  File "/workspace/boilerplate-page-view-time-series-visualizer/time_series_visualizer.py", line 87, in draw_box_plot
    sns.boxplot(data=df_box, x=df_box['year'], y=df_box['value'], ax=ax1, hue=df_box['year'],legend=False, palette='Set2')
  File "/workspace/boilerplate-page-view-time-series-visualizer/.venv/lib/python3.8/site-packages/seaborn/categorical.py", line 2229, in boxplot
    plotter = _BoxPlotter(x, y, hue, data, order, hue_order,
  File "/workspace/boilerplate-page-view-time-series-visualizer/.venv/lib/python3.8/site-packages/seaborn/categorical.py", line 446, in __init__
    self.establish_variables(x, y, hue, data, orient, order, hue_order)
  File "/workspace/boilerplate-page-view-time-series-visualizer/.venv/lib/python3.8/site-packages/seaborn/categorical.py", line 158, in establish_variables
    orient = self.infer_orient(x, y, orient)
  File "/workspace/boilerplate-page-view-time-series-visualizer/.venv/lib/python3.8/site-packages/seaborn/categorical.py", line 359, in infer_orient
    elif is_not_numeric(y):
  File "/workspace/boilerplate-page-view-time-series-visualizer/.venv/lib/python3.8/site-packages/seaborn/categorical.py", line 339, in is_not_numeric
    np.asarray(s, dtype=np.float)
  File "/workspace/boilerplate-page-view-time-series-visualizer/.venv/lib/python3.8/site-packages/numpy/__init__.py", line 305, in __getattr__
    raise AttributeError(__former_attrs__[attr])
AttributeError: module 'numpy' has no attribute 'float'.
`np.float` was a deprecated alias for the builtin `float`. To avoid this error in existing code, use `float` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.float64` here.
The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at:
    https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations

======================================================================
ERROR: test_box_plot_number (__main__.BoxPlotTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/workspace/boilerplate-page-view-time-series-visualizer/test_module.py", line 68, in setUp
    self.fig = time_series_visualizer.draw_box_plot()
  File "/workspace/boilerplate-page-view-time-series-visualizer/time_series_visualizer.py", line 87, in draw_box_plot
    sns.boxplot(data=df_box, x=df_box['year'], y=df_box['value'], ax=ax1, hue=df_box['year'],legend=False, palette='Set2')
  File "/workspace/boilerplate-page-view-time-series-visualizer/.venv/lib/python3.8/site-packages/seaborn/categorical.py", line 2229, in boxplot
    plotter = _BoxPlotter(x, y, hue, data, order, hue_order,
  File "/workspace/boilerplate-page-view-time-series-visualizer/.venv/lib/python3.8/site-packages/seaborn/categorical.py", line 446, in __init__
    self.establish_variables(x, y, hue, data, orient, order, hue_order)
  File "/workspace/boilerplate-page-view-time-series-visualizer/.venv/lib/python3.8/site-packages/seaborn/categorical.py", line 158, in establish_variables
    orient = self.infer_orient(x, y, orient)
  File "/workspace/boilerplate-page-view-time-series-visualizer/.venv/lib/python3.8/site-packages/seaborn/categorical.py", line 359, in infer_orient
    elif is_not_numeric(y):
  File "/workspace/boilerplate-page-view-time-series-visualizer/.venv/lib/python3.8/site-packages/seaborn/categorical.py", line 339, in is_not_numeric
    np.asarray(s, dtype=np.float)
  File "/workspace/boilerplate-page-view-time-series-visualizer/.venv/lib/python3.8/site-packages/numpy/__init__.py", line 305, in __getattr__
    raise AttributeError(__former_attrs__[attr])
AttributeError: module 'numpy' has no attribute 'float'.
`np.float` was a deprecated alias for the builtin `float`. To avoid this error in existing code, use `float` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.float64` here.
The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at:
    https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations

======================================================================
ERROR: test_box_plot_number_of_boxes (__main__.BoxPlotTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/workspace/boilerplate-page-view-time-series-visualizer/test_module.py", line 68, in setUp
    self.fig = time_series_visualizer.draw_box_plot()
  File "/workspace/boilerplate-page-view-time-series-visualizer/time_series_visualizer.py", line 87, in draw_box_plot
    sns.boxplot(data=df_box, x=df_box['year'], y=df_box['value'], ax=ax1, hue=df_box['year'],legend=False, palette='Set2')
  File "/workspace/boilerplate-page-view-time-series-visualizer/.venv/lib/python3.8/site-packages/seaborn/categorical.py", line 2229, in boxplot
    plotter = _BoxPlotter(x, y, hue, data, order, hue_order,
  File "/workspace/boilerplate-page-view-time-series-visualizer/.venv/lib/python3.8/site-packages/seaborn/categorical.py", line 446, in __init__
    self.establish_variables(x, y, hue, data, orient, order, hue_order)
  File "/workspace/boilerplate-page-view-time-series-visualizer/.venv/lib/python3.8/site-packages/seaborn/categorical.py", line 158, in establish_variables
    orient = self.infer_orient(x, y, orient)
  File "/workspace/boilerplate-page-view-time-series-visualizer/.venv/lib/python3.8/site-packages/seaborn/categorical.py", line 359, in infer_orient
    elif is_not_numeric(y):
  File "/workspace/boilerplate-page-view-time-series-visualizer/.venv/lib/python3.8/site-packages/seaborn/categorical.py", line 339, in is_not_numeric
    np.asarray(s, dtype=np.float)
  File "/workspace/boilerplate-page-view-time-series-visualizer/.venv/lib/python3.8/site-packages/numpy/__init__.py", line 305, in __getattr__
    raise AttributeError(__former_attrs__[attr])
AttributeError: module 'numpy' has no attribute 'float'.
`np.float` was a deprecated alias for the builtin `float`. To avoid this error in existing code, use `float` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.float64` here.
The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at:
    https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations

======================================================================
ERROR: test_box_plot_titles (__main__.BoxPlotTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/workspace/boilerplate-page-view-time-series-visualizer/test_module.py", line 68, in setUp
    self.fig = time_series_visualizer.draw_box_plot()
  File "/workspace/boilerplate-page-view-time-series-visualizer/time_series_visualizer.py", line 87, in draw_box_plot
    sns.boxplot(data=df_box, x=df_box['year'], y=df_box['value'], ax=ax1, hue=df_box['year'],legend=False, palette='Set2')
  File "/workspace/boilerplate-page-view-time-series-visualizer/.venv/lib/python3.8/site-packages/seaborn/categorical.py", line 2229, in boxplot
    plotter = _BoxPlotter(x, y, hue, data, order, hue_order,
  File "/workspace/boilerplate-page-view-time-series-visualizer/.venv/lib/python3.8/site-packages/seaborn/categorical.py", line 446, in __init__
    self.establish_variables(x, y, hue, data, orient, order, hue_order)
  File "/workspace/boilerplate-page-view-time-series-visualizer/.venv/lib/python3.8/site-packages/seaborn/categorical.py", line 158, in establish_variables
    orient = self.infer_orient(x, y, orient)
  File "/workspace/boilerplate-page-view-time-series-visualizer/.venv/lib/python3.8/site-packages/seaborn/categorical.py", line 359, in infer_orient
    elif is_not_numeric(y):
  File "/workspace/boilerplate-page-view-time-series-visualizer/.venv/lib/python3.8/site-packages/seaborn/categorical.py", line 339, in is_not_numeric
    np.asarray(s, dtype=np.float)
  File "/workspace/boilerplate-page-view-time-series-visualizer/.venv/lib/python3.8/site-packages/numpy/__init__.py", line 305, in __getattr__
    raise AttributeError(__former_attrs__[attr])
AttributeError: module 'numpy' has no attribute 'float'.
`np.float` was a deprecated alias for the builtin `float`. To avoid this error in existing code, use `float` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.float64` here.
The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at:
    https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations

----------------------------------------------------------------------
Ran 11 tests in 1.233s

FAILED (errors=7)

Even when I try to run time_series_visualizer.py on gitpod.io. Replit didn’t have such issuesm with the other course I did for Python.

main) $ /workspace/boilerplate-page-view-time-series-visualizer/.venv/bin/python /workspace/boilerplate-page-view-time-series-visualizer/time_series_visualizer.py
Traceback (most recent call last):
  File "/workspace/boilerplate-page-view-time-series-visualizer/time_series_visualizer.py", line 2, in <module>
    import pandas as pd
  File "/workspace/boilerplate-page-view-time-series-visualizer/.venv/lib/python3.10/site-packages/pandas/__init__.py", line 22, in <module>
    from pandas.compat import is_numpy_dev as _is_numpy_dev  # pyright: ignore # noqa:F401
  File "/workspace/boilerplate-page-view-time-series-visualizer/.venv/lib/python3.10/site-packages/pandas/compat/__init__.py", line 18, in <module>
    from pandas.compat.numpy import (
  File "/workspace/boilerplate-page-view-time-series-visualizer/.venv/lib/python3.10/site-packages/pandas/compat/numpy/__init__.py", line 4, in <module>
    from pandas.util.version import Version
  File "/workspace/boilerplate-page-view-time-series-visualizer/.venv/lib/python3.10/site-packages/pandas/util/__init__.py", line 2, in <module>
    from pandas.util._decorators import (  # noqa:F401
  File "/workspace/boilerplate-page-view-time-series-visualizer/.venv/lib/python3.10/site-packages/pandas/util/_decorators.py", line 14, in <module>
    from pandas._libs.properties import cache_readonly
  File "/workspace/boilerplate-page-view-time-series-visualizer/.venv/lib/python3.10/site-packages/pandas/_libs/__init__.py", line 13, in <module>
    from pandas._libs.interval import Interval
  File "pandas/_libs/interval.pyx", line 1, in init pandas._libs.interval
ValueError: numpy.dtype size changed, may indicate binary incompatibility. Expected 96 from C header, got 88 from PyObject

Try using Pandas to make the plot, instead of Seabon:
https://forum.freecodecamp.org/t/page-view-time-series-visualizer/682851/5

The instructions don’t ask you to use Seaborn for the bar plot. It could also be the seaborn verion, I have 0.12.2

Because I can’t replicate the error. Here is your code on my replit:
https://replit.com/@pkdvalis/FCC-page-view-time-series-visualizerSerjSX

You could try:

  • forking that environment which seems to work
  • install seaborn 0.12.2
  • don’t use seaborn for the bar chart