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

Commit 5ff184e

Browse files
mtileyjstac
authored andcommitted
Fix pandas FutureWarning in heavy_tails and kesten_processes (#789)
- explicitly register pandas converters - brief explanation
1 parent df0b172 commit 5ff184e

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

source/rst/heavy_tails.rst

+6
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,12 @@ Let's start with some imports:
7979
8080
from scipy.stats import cauchy
8181
82+
The following two lines can be added to avoid an annoying FutureWarning, and prevent a specific compatibility issue between pandas and matplotlib from causing problems down the line:
83+
84+
.. code-block:: ipython
85+
86+
from pandas.plotting import register_matplotlib_converters
87+
register_matplotlib_converters()
8288
8389
8490
Visual Comparisons

source/rst/kesten_processes.rst

+7
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,13 @@ Let's start with some imports:
4747
import matplotlib.pyplot as plt
4848
%matplotlib inline
4949
50+
The following two lines can be added to avoid an annoying FutureWarning, and prevent a specific compatibility issue between pandas and matplotlib from causing problems down the line:
51+
52+
.. code-block:: ipython
53+
54+
from pandas.plotting import register_matplotlib_converters
55+
register_matplotlib_converters()
56+
5057
5158
Kesten Processes
5259
=================

0 commit comments

Comments
 (0)