From 342151f57b497c6bb3700af8cb8a2af7d4580802 Mon Sep 17 00:00:00 2001 From: Jeff Reback Date: Sun, 8 Mar 2015 12:17:38 -0400 Subject: [PATCH] DEPR: deprecate pandas.sandbox.qtpandas --- doc/source/faq.rst | 5 +++++ doc/source/whatsnew/v0.16.0.txt | 2 ++ pandas/sandbox/qtpandas.py | 8 ++++++++ 3 files changed, 15 insertions(+) diff --git a/doc/source/faq.rst b/doc/source/faq.rst index 6977716e2913f..de88b436198dd 100644 --- a/doc/source/faq.rst +++ b/doc/source/faq.rst @@ -290,6 +290,11 @@ details. Visualizing Data in Qt applications ----------------------------------- +.. warning:: + + The ``qt`` support is **deprecated and will be removed in a future version**. + We refer users to the external package `pandas-qt `_. + There is experimental support for visualizing DataFrames in PyQt4 and PySide applications. At the moment you can display and edit the values of the cells in the DataFrame. Qt will take care of displaying just the portion of the diff --git a/doc/source/whatsnew/v0.16.0.txt b/doc/source/whatsnew/v0.16.0.txt index 9dfa8e61387b9..c631faf09747f 100644 --- a/doc/source/whatsnew/v0.16.0.txt +++ b/doc/source/whatsnew/v0.16.0.txt @@ -384,6 +384,8 @@ Deprecations The documentation includes some examples how to convert your existing code using ``rplot`` to seaborn: - :ref:`rplot docs ` +- The ``pandas.sandbox.qtpandas`` interface is deprecated and will be removed in a future version. + We refer users to the external package `pandas-qt `_. (:issue:`9615`) .. _whatsnew_0160.prior_deprecations: diff --git a/pandas/sandbox/qtpandas.py b/pandas/sandbox/qtpandas.py index 3f284990efd40..2655aa5a452c8 100644 --- a/pandas/sandbox/qtpandas.py +++ b/pandas/sandbox/qtpandas.py @@ -3,6 +3,14 @@ @author: Jev Kuznetsov ''' + +# GH9615 + +import warnings +warnings.warn("The pandas.sandbox.qtpandas module is deprecated and will be " + "removed in a future version. We refer users to the external package " + "here: https://github.com/datalyze-solutions/pandas-qt") + try: from PyQt4.QtCore import QAbstractTableModel, Qt, QVariant, QModelIndex from PyQt4.QtGui import (