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/contributing.rst
+2-10
Original file line number
Diff line number
Diff line change
@@ -617,11 +617,11 @@ the expected correct result::
617
617
Transitioning to ``pytest``
618
618
~~~~~~~~~~~~~~~~~~~~~~~~~~~
619
619
620
-
*pandas* existing test structure is *mostly* classed based, meaning that you will typically find tests wrapped in a class, inheriting from ``tm.TestCase``.
620
+
*pandas* existing test structure is *mostly* classed based, meaning that you will typically find tests wrapped in a class.
621
621
622
622
.. code-block:: python
623
623
624
-
classTestReallyCoolFeature(tm.TestCase):
624
+
classTestReallyCoolFeature(object):
625
625
....
626
626
627
627
Going forward, we are moving to a more *functional* style using the `pytest <http://doc.pytest.org/en/latest/>`__ framework, which offers a richer testing
@@ -632,14 +632,6 @@ framework that will facilitate testing and developing. Thus, instead of writing
632
632
deftest_really_cool_feature():
633
633
....
634
634
635
-
Sometimes, it does make sense to bundle test functions together into a single class, either because the test file is testing multiple functions from a single module, and
636
-
using test classes allows for better organization. However, instead of inheriting from ``tm.TestCase``, we should just inherit from ``object``:
Copy file name to clipboardExpand all lines: doc/source/whatsnew/v0.20.0.txt
+11-11
Original file line number
Diff line number
Diff line change
@@ -527,7 +527,6 @@ Other Enhancements
527
527
- ``parallel_coordinates()`` has gained a ``sort_labels`` keyword arg that sorts class labels and the colours assigned to them (:issue:`15908`)
528
528
- Options added to allow one to turn on/off using ``bottleneck`` and ``numexpr``, see :ref:`here <basics.accelerate>` (:issue:`16157`)
529
529
- ``DataFrame.style.bar()`` now accepts two more options to further customize the bar chart. Bar alignment is set with ``align='left'|'mid'|'zero'``, the default is "left", which is backward compatible; You can now pass a list of ``color=[color_negative, color_positive]``. (:issue:`14757`)
530
-
- ``Series.to_dict()`` and ``DataFrame.to_dict()`` now support an ``into`` keyword which allows you to specify the ``collections.Mapping`` subclass that you would like returned. The default is ``dict``, which is backwards compatible. (:issue:`16122`)
Some new subpackages are created with public functionality that is not directly
@@ -1253,6 +1252,8 @@ these are now the public subpackages.
1253
1252
1254
1253
- The function :func:`~pandas.api.types.union_categoricals` is now importable from ``pandas.api.types``, formerly from ``pandas.types.concat`` (:issue:`15998`)
1255
1254
- The type import ``pandas.tslib.NaTType`` is deprecated and can be replaced by using ``type(pandas.NaT)`` (:issue:`16146`)
1255
+
- The public functions in ``pandas.tools.hashing`` deprecated from that locations, but are now importable from ``pandas.util`` (:issue:`16223`)
1256
+
- The modules in ``pandas.util``: ``decorators``, ``print_versions``, ``doctools``, `validators``, ``depr_module`` are now private (:issue:`16223`)
1256
1257
1257
1258
.. _whatsnew_0200.privacy.errors:
1258
1259
@@ -1277,7 +1278,7 @@ The following are now part of this API:
1277
1278
'UnsupportedFunctionCall']
1278
1279
1279
1280
1280
-
.. _whatsnew_0200.privay.testing:
1281
+
.. _whatsnew_0200.privacy.testing:
1281
1282
1282
1283
``pandas.testing``
1283
1284
^^^^^^^^^^^^^^^^^^
@@ -1291,14 +1292,13 @@ The following testing functions are now part of this API:
1291
1292
- :func:`testing.assert_index_equal`
1292
1293
1293
1294
1294
-
.. _whatsnew_0200.privay.plotting:
1295
+
.. _whatsnew_0200.privacy.plotting:
1295
1296
1296
1297
``pandas.plotting``
1297
1298
^^^^^^^^^^^^^^^^^^^
1298
1299
1299
1300
A new public ``pandas.plotting`` module has been added that holds plotting functionality that was previously in either ``pandas.tools.plotting`` or in the top-level namespace. See the :ref:`deprecations sections <whatsnew_0200.privacy.deprecate_plotting>` for more details.
Copy file name to clipboardExpand all lines: doc/source/whatsnew/v0.20.1.txt
+1
Original file line number
Diff line number
Diff line change
@@ -18,6 +18,7 @@ Highlights include:
18
18
19
19
Enhancements
20
20
~~~~~~~~~~~~
21
+
- ``Series.to_dict()`` and ``DataFrame.to_dict()`` now support an ``into`` keyword which allows you to specify the ``collections.Mapping`` subclass that you would like returned. The default is ``dict``, which is backwards compatible. (:issue:`16122`)
0 commit comments