Skip to content
This repository was archived by the owner on Apr 24, 2020. It is now read-only.

Fix FutureWarning in heavy_tails.rst #787

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions source/rst/heavy_tails.rst
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,13 @@ The code below produces the desired plot using Yahoo financial data via the ``yf

import yfinance as yf
import pandas as pd

from pandas.plotting import register_matplotlib_converters
register_matplotlib_converters()
# The two lines above allow us to safely use pandas time series
# methods with a matplotlib plotting method
# This code will work without them (as of pandas v0.25.1) but would
# result in a FutureWarning, and could be broken by pandas updates

s = yf.download('AMZN', '2015-1-1', '2019-11-1')['Adj Close']

Expand Down