Skip to content

Commit

Permalink
Merge pull request #9615 from jreback/qt
Browse files Browse the repository at this point in the history
DEPR: deprecate pandas.sandbox.qtpandas
  • Loading branch information
jreback committed Mar 8, 2015
2 parents 0270484 + 342151f commit 9bb1353
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
5 changes: 5 additions & 0 deletions doc/source/faq.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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 <https://github.com/datalyze-solutions/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
Expand Down
2 changes: 2 additions & 0 deletions doc/source/whatsnew/v0.16.0.txt
Original file line number Diff line number Diff line change
Expand Up @@ -384,6 +384,8 @@ Deprecations
The documentation includes some examples how to convert your existing code
using ``rplot`` to seaborn: - :ref:`rplot docs <rplot>`

- The ``pandas.sandbox.qtpandas`` interface is deprecated and will be removed in a future version.
We refer users to the external package `pandas-qt <https://github.com/datalyze-solutions/pandas-qt>`_. (:issue:`9615`)

.. _whatsnew_0160.prior_deprecations:

Expand Down
8 changes: 8 additions & 0 deletions pandas/sandbox/qtpandas.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down

0 comments on commit 9bb1353

Please sign in to comment.