You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/source/release.rst
+3-3
Original file line number
Diff line number
Diff line change
@@ -166,12 +166,12 @@ API Changes
166
166
167
167
- Added ``nunique`` and ``value_counts`` functions to ``Index`` for counting unique elements. (:issue:`6734`)
168
168
169
-
- ``DataFrame.plot`` and ``Series.plot`` now support a ``table`` keyword for plotting ``matplotlib.Table``. The ``table`` kewyword can receive the following values.
170
-
169
+
- ``DataFrame.plot`` and ``Series.plot`` now support a ``table`` keyword for plotting ``matplotlib.Table``. The ``table`` kewyword can receive the following values.
170
+
171
171
- ``False``: Do nothing (default).
172
172
173
173
- ``True``: Draw a table using the ``DataFrame`` or ``Series`` called ``plot`` method. Data will be transposed to meet matplotlib's default layout.
174
-
174
+
175
175
- ``DataFrame`` or ``Series``: Draw matplotlib.table using the passed data. The data will be drawn as displayed in print method (not transposed automatically).
176
176
177
177
Also, helper function ``pandas.tools.plotting.table`` is added to create a table from ``DataFrame`` and ``Series``, and add it to an ``matplotlib.Axes``.
- Following keywords are now acceptable for :meth:`DataFrame.plot(kind='bar')` and :meth:`DataFrame.plot(kind='barh')`.
177
-
178
-
- `width`: Specify the bar width. In previous versions, static value 0.5 was passed to matplotlib and it cannot be overwritten. (:issue:`6604`)
179
-
180
-
- `align`: Specify the bar alignment. Default is `center` (different from matplotlib). In previous versions, pandas passes `align='edge'` to matplotlib and adjust the location to `center` by itself, and it results `align` keyword is not applied as expected. (:issue:`4525`)
181
-
182
-
- `position`: Specify relative alignments for bar plot layout. From 0 (left/bottom-end) to 1(right/top-end). Default is 0.5 (center). (:issue:`6604`)
183
-
184
-
Because of the default `align` value changes, coordinates of bar plots are now located on integer values (0.0, 1.0, 2.0 ...). This is intended to make bar plot be located on the same coodinates as line plot. However, bar plot may differs unexpectedly when you manually adjust the bar location or drawing area, such as using `set_xlim`, `set_ylim`, etc. In this cases, please modify your script to meet with new coordinates.
185
-
186
190
- ``pairwise`` keyword was added to the statistical moment functions
``expanding_cov``, ``expanding_corr`` to allow the calculation of moving
@@ -201,16 +205,13 @@ API changes
201
205
- ``Series.iteritems()`` is now lazy (returns an iterator rather than a list). This was the documented behavior prior to 0.14. (:issue:`6760`)
202
206
203
207
204
-
- ``DataFrame.plot`` and ``Series.plot`` now support a ``table`` keyword for plotting ``matplotlib.Table``. The ``table`` kewyword can receive the following values.
205
-
206
-
- ``False``: Do nothing (default).
207
208
208
-
- ``True``: Draw a table using the ``DataFrame`` or ``Series`` called ``plot`` method. Data will be transposed to meet matplotlib's default layout.
209
-
210
-
- ``DataFrame`` or ``Series``: Draw matplotlib.table using the passed data. The data will be drawn as displayed in print method (not transposed automatically).
209
+
.. _whatsnew_0140.sql:
211
210
212
-
Also, helper function ``pandas.tools.plotting.table`` is added to create a table from ``DataFrame`` and ``Series``, and add it to an ``matplotlib.Axes``.
211
+
SQL
212
+
~~~
213
213
214
+
.. _whatsnew_0140.slicers:
214
215
215
216
MultiIndexing Using Slicers
216
217
~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -319,19 +320,29 @@ You can use a right-hand-side of an alignable object as well.
319
320
df2.loc[idx[:,:,['C1','C3']],:] = df2*1000
320
321
df2
321
322
322
-
Plotting With Errorbars
323
-
~~~~~~~~~~~~~~~~~~~~~~~
323
+
.. _whatsnew_0140.plotting:
324
324
325
-
Plotting with error bars is now supported in the ``.plot`` method of ``DataFrame`` and ``Series`` objects (:issue:`3796`).
325
+
Plotting
326
+
~~~~~~~~
326
327
327
-
x and y errorbars are supported and can be supplied using the ``xerr`` and ``yerr`` keyword arguments to ``.plot()`` The error values can be specified using a variety of formats.
328
+
- Hexagonal bin plots from ``DataFrame.plot`` with ``kind='hexbin'`` (:issue:`5478`), See :ref:`the docs<visualization.hexbin>`.
328
329
329
-
- As a ``DataFrame`` or ``dict`` of errors with one or more of the column names (or dictionary keys) matching one or more of the column names of the plotting ``DataFrame`` or matching the ``name`` attribute of the ``Series``
330
-
- As a ``str`` indicating which of the columns of plotting ``DataFrame`` contain the error values
331
-
- As raw values (``list``, ``tuple``, or ``np.ndarray``). Must be the same length as the plotting ``DataFrame``/``Series``
330
+
- Plotting with Error Bars is now supported in the ``.plot`` method of ``DataFrame`` and ``Series`` objects (:issue:`3796`), See :ref:`the docs<visualization.errorbars>`.
332
331
333
-
Asymmetrical error bars are also supported, however raw error values must be provided in this case. For a ``M`` length ``Series``, a ``Mx2`` array should be provided indicating lower and upper (or left and right) errors. For a ``MxN`` ``DataFrame``, asymmetrical errors should be in a ``Mx2xN`` array.
332
+
- ``DataFrame.plot`` and ``Series.plot`` now support a ``table`` keyword for plotting ``matplotlib.Table``, See :ref:`the docs<visualization.table>`.
334
333
334
+
- ``plot(legend='reverse')`` will now reverse the order of legend labels for
335
+
most plot kinds. (:issue:`6014`)
336
+
337
+
- Following keywords are now acceptable for :meth:`DataFrame.plot(kind='bar')` and :meth:`DataFrame.plot(kind='barh')`.
338
+
339
+
- `width`: Specify the bar width. In previous versions, static value 0.5 was passed to matplotlib and it cannot be overwritten. (:issue:`6604`)
340
+
341
+
- `align`: Specify the bar alignment. Default is `center` (different from matplotlib). In previous versions, pandas passes `align='edge'` to matplotlib and adjust the location to `center` by itself, and it results `align` keyword is not applied as expected. (:issue:`4525`)
342
+
343
+
- `position`: Specify relative alignments for bar plot layout. From 0 (left/bottom-end) to 1(right/top-end). Default is 0.5 (center). (:issue:`6604`)
344
+
345
+
Because of the default `align` value changes, coordinates of bar plots are now located on integer values (0.0, 1.0, 2.0 ...). This is intended to make bar plot be located on the same coodinates as line plot. However, bar plot may differs unexpectedly when you manually adjust the bar location or drawing area, such as using `set_xlim`, `set_ylim`, etc. In this cases, please modify your script to meet with new coordinates.
335
346
336
347
Prior Version Deprecations/Changes
337
348
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -340,6 +351,8 @@ There are prior version deprecations that are taking effect as of 0.14.0.
340
351
341
352
- Remove ``column`` keyword from ``DataFrame.sort`` (:issue:`4370`)
342
353
354
+
.. _whatsnew_0140.deprecations:
355
+
343
356
Deprecations
344
357
~~~~~~~~~~~~
345
358
@@ -358,15 +371,14 @@ Deprecations
358
371
``FutureWarning`` is raised to alert that the old ``cols`` arguments
359
372
will not be supported in a future release (:issue:`6645`)
360
373
374
+
.. _whatsnew_0140.enhancements:
375
+
361
376
Enhancements
362
377
~~~~~~~~~~~~
363
378
364
379
- ``DataFrame.to_latex`` now takes a longtable keyword, which if True will return a table in a longtable environment. (:issue:`6617`)
365
380
- ``pd.read_clipboard`` will, if 'sep' is unspecified, try to detect data copied from a spreadsheet
366
381
and parse accordingly. (:issue:`6223`)
367
-
- ``plot(legend='reverse')`` will now reverse the order of legend labels for
368
-
most plot kinds. (:issue:`6014`)
369
-
- Hexagonal bin plots from ``DataFrame.plot`` with ``kind='hexbin'`` (:issue:`5478`)
370
382
- Joining a singly-indexed DataFrame with a multi-indexed DataFrame (:issue:`3662`)
371
383
372
384
See :ref:`the docs<merging.join_on_mi>`. Joining multi-index DataFrames on both the left and right is not yet supported ATM.
@@ -403,7 +415,7 @@ Enhancements
403
415
file. (:issue:`6545`)
404
416
- ``pandas.io.gbq`` now handles reading unicode strings properly. (:issue:`5940`)
405
417
- Improve performance of ``CustomBusinessDay`` (:issue:`6584`)
406
-
- :ref:`Holidays and holiday calendars<timeseries.holiday>` are now available and can be used with CustomBusinessDay (:issue:`6719`)
418
+
- :ref:`Holidays Calendars<timeseries.holiday>` are now available and can be used with CustomBusinessDay (:issue:`6719`)
Copy file name to clipboardExpand all lines: doc/source/visualization.rst
+26-18
Original file line number
Diff line number
Diff line change
@@ -385,6 +385,9 @@ columns:
385
385
386
386
Plotting With Error Bars
387
387
~~~~~~~~~~~~~~~~~~~~~~~~
388
+
389
+
.. versionadded:: 0.14
390
+
388
391
Plotting with error bars is now supported in the ``.plot`` method of ``DataFrame`` and ``Series`` objects.
389
392
390
393
x and y errorbars are supported and be supplied using the ``xerr`` and ``yerr`` keyword arguments to ``.plot()`` The error values can be specified using a variety of formats.
@@ -415,6 +418,8 @@ Here is an example of one way to easily plot group means with standard deviation
415
418
@savefigerrorbar_example.png
416
419
means.plot(yerr=errors, ax=ax, kind='bar')
417
420
421
+
.. _visualization.table:
422
+
418
423
Plotting With Table
419
424
~~~~~~~~~~~~~~~~~~~~~~~~
420
425
@@ -448,7 +453,7 @@ Finally, there is a helper function ``pandas.tools.plotting.table`` to create a
448
453
from pandas.tools.plotting import table
449
454
fig, ax = plt.subplots(1, 1)
450
455
451
-
table(ax, np.round(df.describe(), 2),
456
+
table(ax, np.round(df.describe(), 2),
452
457
loc='upper right', colWidths=[0.2, 0.2, 0.2])
453
458
454
459
@savefigline_plot_table_describe.png
@@ -494,7 +499,10 @@ setting ``kind='kde'``:
494
499
495
500
Hexagonal Bin plot
496
501
~~~~~~~~~~~~~~~~~~
497
-
*New in .14* You can create hexagonal bin plots with ``DataFrame.plot`` and
502
+
503
+
.. versionadded:: 0.14
504
+
505
+
You can create hexagonal bin plots with ``DataFrame.plot`` and
498
506
``kind='hexbin'``.
499
507
Hexbin plots can be a useful alternative to scatter plots if your data are
500
508
too dense to plot each point individually.
@@ -693,17 +701,17 @@ be colored differently.
693
701
Colormaps
694
702
~~~~~~~~~
695
703
696
-
A potential issue when plotting a large number of columns is that it can be
704
+
A potential issue when plotting a large number of columns is that it can be
697
705
difficult to distinguish some series due to repetition in the default colors. To
698
-
remedy this, DataFrame plotting supports the use of the ``colormap=`` argument,
699
-
which accepts either a Matplotlib `colormap <http://matplotlib.org/api/cm_api.html>`__
700
-
or a string that is a name of a colormap registered with Matplotlib. A
701
-
visualization of the default matplotlib colormaps is available `here
706
+
remedy this, DataFrame plotting supports the use of the ``colormap=`` argument,
707
+
which accepts either a Matplotlib `colormap <http://matplotlib.org/api/cm_api.html>`__
708
+
or a string that is a name of a colormap registered with Matplotlib. A
709
+
visualization of the default matplotlib colormaps is available `here
0 commit comments