diff --git a/doc/environment.yml b/doc/environment.yml index 771b1492669..e3e21b863f6 100644 --- a/doc/environment.yml +++ b/doc/environment.yml @@ -5,7 +5,7 @@ channels: dependencies: - python=3.5 - numpy=1.11.2 - - pandas=0.19.1 + - pandas=0.20.1 - numpydoc=0.6.0 - matplotlib=2.0.0 - seaborn=0.7.1 diff --git a/doc/examples/_code/weather_data_setup.py b/doc/examples/_code/weather_data_setup.py index 1d2d34481a1..a6190ad3cfe 100644 --- a/doc/examples/_code/weather_data_setup.py +++ b/doc/examples/_code/weather_data_setup.py @@ -6,7 +6,7 @@ np.random.seed(123) times = pd.date_range('2000-01-01', '2001-12-31', name='time') -annual_cycle = np.sin(2 * np.pi * (times.dayofyear / 365.25 - 0.28)) +annual_cycle = np.sin(2 * np.pi * (times.dayofyear.values / 365.25 - 0.28)) base = 10 + 15 * annual_cycle.reshape(-1, 1) tmin_values = base + 3 * np.random.randn(annual_cycle.size, 3) diff --git a/doc/examples/examples_pairplot.png b/doc/examples/examples_pairplot.png deleted file mode 100644 index 3c1f32a02c9..00000000000 Binary files a/doc/examples/examples_pairplot.png and /dev/null differ diff --git a/doc/examples/weather-data.rst b/doc/examples/weather-data.rst index e7ebdd973ff..87303dbfff1 100644 --- a/doc/examples/weather-data.rst +++ b/doc/examples/weather-data.rst @@ -42,15 +42,9 @@ Examine a dataset with pandas_ and seaborn_ @savefig examples_tmin_tmax_plot.png ds.mean(dim='location').to_dataframe().plot() -.. ipython:: - :verbatim: - In [6]: sns.pairplot(df.reset_index(), vars=ds.data_vars) - Out[6]: - -.. image:: examples_pairplot.png +.. ipython:: python -.. .. ipython:: python @savefig examples_pairplot.png sns.pairplot(df.reset_index(), vars=ds.data_vars)