From 7d067aace9dda76944c9a60ca8e9ca4ef0588562 Mon Sep 17 00:00:00 2001 From: Joris Van den Bossche Date: Sat, 13 Aug 2016 15:21:33 +0200 Subject: [PATCH] DOC: suppress warnings for Panel4D deprecation --- doc/source/dsintro.rst | 1 + doc/source/io.rst | 3 +++ doc/source/whatsnew/v0.10.0.txt | 1 + 3 files changed, 5 insertions(+) diff --git a/doc/source/dsintro.rst b/doc/source/dsintro.rst index 8f89cd6789f4f..b5ad681426b15 100644 --- a/doc/source/dsintro.rst +++ b/doc/source/dsintro.rst @@ -1042,6 +1042,7 @@ The following creates a Panel5D. A new panel type object must be sliceable into Here we slice to a Panel4D. .. ipython:: python + :okwarning: from pandas.core import panelnd Panel5D = panelnd.create_nd_panel_factory( diff --git a/doc/source/io.rst b/doc/source/io.rst index 35d6639d21269..2e62a6cf8d855 100644 --- a/doc/source/io.rst +++ b/doc/source/io.rst @@ -4012,6 +4012,7 @@ number of options, please see the docstring. legacy_file_path = os.path.abspath('source/_static/legacy_0.10.h5') .. ipython:: python + :okwarning: # a legacy store legacy_store = HDFStore(legacy_file_path,'r') @@ -4059,6 +4060,7 @@ Experimental HDFStore supports ``Panel4D`` storage. .. ipython:: python + :okwarning: p4d = Panel4D({ 'l1' : wp }) p4d @@ -4073,6 +4075,7 @@ store your data. Pass the ``axes`` keyword with a list of dimensions object). This cannot be changed after table creation. .. ipython:: python + :okwarning: store.append('p4d2', p4d, axes=['labels', 'major_axis', 'minor_axis']) store diff --git a/doc/source/whatsnew/v0.10.0.txt b/doc/source/whatsnew/v0.10.0.txt index ce20de654ffd8..fed3ba3ce3a84 100644 --- a/doc/source/whatsnew/v0.10.0.txt +++ b/doc/source/whatsnew/v0.10.0.txt @@ -383,6 +383,7 @@ Adding experimental support for Panel4D and factory functions to create n-dimens :ref:`Docs ` for NDim. Here is a taste of what to expect. .. ipython:: python + :okwarning: p4d = Panel4D(randn(2, 2, 5, 4), labels=['Label1','Label2'],