Guided Project: Storytelling Data Visualization on Exchange Rates <matplotlib.figure.Figure at 0x7fa81253f9e8>?

When I copy the code proposed in the exercise:

import matplotlib.pyplot as plt

What I expected to happen:

Some kind of plot. :slightly_smiling_face:

What actually happened:

<matplotlib.figure.Figure at 0x7fa80f007748> :disappointed:
<class 'pandas.core.frame.DataFrame'>
Int64Index: 5637 entries, 5698 to 0
Data columns (total 2 columns):
Time         5637 non-null datetime64[ns]
US_dollar    5637 non-null float64
dtypes: datetime64[ns](1), float64(1)
memory usage: 132.1 KB
  • this is the type of data contained in the dataframe. it seems to be correct, doesn’t it?
  • can it be for datetime64[ns]?

Greetings and thanks in advance.


When working with Jupyter Notebooks, you need to specify when you want Matplotlib to display any image/visualization inside the Notebook.

So, once you import Matplotlib

you need to also add

%matplotlib inline

The above allows matplotlib images/visualizations to be shown in the Notebook.

Also, for future reference, please make sure to include a link to the Mission or Guided Project Step in your post details.


I’m also facing the same issue. even after adding:
import matplotlib.pyplot as plt
%matplotlib inline
no luck. please suggest.