File tree 3 files changed +38
-2
lines changed
3 files changed +38
-2
lines changed Original file line number Diff line number Diff line change @@ -1607,6 +1607,16 @@ when plotting a large number of points.
1607
1607
Trellis plotting interface
1608
1608
--------------------------
1609
1609
1610
+ .. warning ::
1611
+
1612
+ The ``rplot `` trellis plotting interface is deprecated and will be removed
1613
+ in a future version. We refer to external packages like
1614
+ `seaborn <https://github.com/mwaskom/seaborn >`_ for similar but more
1615
+ refined functionality.
1616
+
1617
+ The docs below include some example on how to convert your existing code to
1618
+ these packages.
1619
+
1610
1620
.. ipython :: python
1611
1621
:suppress:
1612
1622
@@ -1622,7 +1632,6 @@ Trellis plotting interface
1622
1632
iris_data = read_csv(' data/iris.data' )
1623
1633
from pandas import read_csv
1624
1634
from pandas.tools.plotting import radviz
1625
- import pandas.tools.rplot as rplot
1626
1635
plt.close(' all' )
1627
1636
1628
1637
@@ -1641,6 +1650,7 @@ Trellis plotting interface
1641
1650
We import the rplot API:
1642
1651
1643
1652
.. ipython :: python
1653
+ :okwarning:
1644
1654
1645
1655
import pandas.tools.rplot as rplot
1646
1656
Original file line number Diff line number Diff line change @@ -365,10 +365,25 @@ The behavior of a small sub-set of edge cases for using ``.loc`` have changed (:
365
365
In [4]: df.loc[2:3]
366
366
TypeError: Cannot do slice indexing on <class 'pandas.tseries.index.DatetimeIndex'> with <type 'int'> keys
367
367
368
+
369
+ .. _whatsnew_0160.deprecations:
370
+
368
371
Deprecations
369
372
~~~~~~~~~~~~
370
373
371
- .. _whatsnew_0160.deprecations:
374
+ - The ``rplot`` trellis plotting interface is deprecated and will be removed
375
+ in a future version. We refer to external packages like
376
+ `seaborn <http://stanford.edu/~mwaskom/software/seaborn/>`_ for similar
377
+ but more refined functionality (:issue:`3445`).
378
+
379
+ The documentation includes some examples how to convert your existing code
380
+ using ``rplot`` to seaborn: - :ref:`rplot docs <rplot>`
381
+
382
+
383
+ .. _whatsnew_0160.prior_deprecations:
384
+
385
+ Removal of prior version deprecations/changes
386
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
372
387
373
388
- ``DataFrame.pivot_table`` and ``crosstab``'s ``rows`` and ``cols`` keyword arguments were removed in favor
374
389
of ``index`` and ``columns`` (:issue:`6581`)
Original file line number Diff line number Diff line change 1
1
import random
2
+ import warnings
2
3
from copy import deepcopy
3
4
from pandas .core .common import _values_from_object
4
5
9
10
# * Make sure legends work properly
10
11
#
11
12
13
+
14
+ warnings .warn ("\n "
15
+ "The rplot trellis plotting interface is deprecated and will be "
16
+ "removed in a future version. We refer to external packages "
17
+ "like seaborn for similar but more refined functionality. \n \n "
18
+ "See our docs http://pandas.pydata.org/pandas-docs/stable/visualization.html#rplot "
19
+ "for some example how to convert your existing code to these "
20
+ "packages." , FutureWarning )
21
+
22
+
12
23
class Scale :
13
24
"""
14
25
Base class for mapping between graphical and data attributes.
You can’t perform that action at this time.
0 commit comments