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
The ``pd.get_dummies`` function now returns dummy-encoded columns as small integers, rather than floats (:issue:`8725`). This should provide an improved memory footprint.
413
414
414
-
Previous behaviour:
415
+
Previous Behavior:
415
416
416
417
.. code-block:: ipython
417
418
418
-
In [1]: pd.get_dummies(['a', 'b', 'a', 'c']).dtypes
419
+
In [1]: pd.get_dummies(['a', 'b', 'a', 'c']).dtypes
419
420
420
421
Out[1]:
421
422
a float64
@@ -437,7 +438,7 @@ Other enhancements
437
438
438
439
- The ``.get_credentials()`` method of ``GbqConnector`` can now first try to fetch `the application default credentials <https://developers.google.com/identity/protocols/application-default-credentials>`__. See the :ref:`docs <io.bigquery_authentication>` for more details (:issue:`13577`).
439
440
440
-
- The ``.tz_localize()`` method of ``DatetimeIndex`` and ``Timestamp`` has gained the ``errors`` keyword, so you can potentially coerce nonexistent timestamps to ``NaT``. The default behaviour remains to raising a ``NonExistentTimeError`` (:issue:`13057`)
441
+
- The ``.tz_localize()`` method of ``DatetimeIndex`` and ``Timestamp`` has gained the ``errors`` keyword, so you can potentially coerce nonexistent timestamps to ``NaT``. The default behavior remains to raising a ``NonExistentTimeError`` (:issue:`13057`)
441
442
- ``pd.to_numeric()`` now accepts a ``downcast`` parameter, which will downcast the data if possible to smallest specified numerical dtype (:issue:`13352`)
442
443
443
444
.. ipython:: python
@@ -544,7 +545,7 @@ API changes
544
545
``Series.tolist()`` will now return Python types
545
546
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
546
547
547
-
``Series.tolist()`` will now return Python types in the output, mimicking NumPy ``.tolist()`` behaviour (:issue:`10904`)
548
+
``Series.tolist()`` will now return Python types in the output, mimicking NumPy ``.tolist()`` behavior (:issue:`10904`)
548
549
549
550
550
551
.. ipython:: python
@@ -579,7 +580,7 @@ including ``DataFrame`` (:issue:`1134`, :issue:`4581`, :issue:`13538`)
579
580
580
581
.. warning::
581
582
Until 0.18.1, comparing ``Series`` with the same length, would succeed even if
582
-
the ``.index`` are different (the result ignores ``.index``). As of 0.19.0, this will raises ``ValueError`` to be more strict. This section also describes how to keep previous behaviour or align different indexes, using the flexible comparison methods like ``.eq``.
583
+
the ``.index`` are different (the result ignores ``.index``). As of 0.19.0, this will raises ``ValueError`` to be more strict. This section also describes how to keep previous behavior or align different indexes, using the flexible comparison methods like ``.eq``.
583
584
584
585
585
586
As a result, ``Series`` and ``DataFrame`` operators behave as below:
@@ -647,7 +648,7 @@ Logical operators
647
648
648
649
Logical operators align both ``.index``.
649
650
650
-
Previous Behavior (``Series``), only left hand side ``index`` is kept:
651
+
Previous behavior (``Series``), only left hand side ``index`` is kept:
651
652
652
653
.. code-block:: ipython
653
654
@@ -966,7 +967,7 @@ Index ``+`` / ``-`` no longer used for set operations
966
967
967
968
Addition and subtraction of the base Index type (not the numeric subclasses)
968
969
previously performed set operations (set union and difference). This
969
-
behaviour was already deprecated since 0.15.0 (in favor using the specific
970
+
behavior was already deprecated since 0.15.0 (in favor using the specific
970
971
``.union()`` and ``.difference()`` methods), and is now disabled. When
971
972
possible, ``+`` and ``-`` are now used for element-wise operations, for
972
973
example for concatenating strings (:issue:`8227`, :issue:`14127`).
@@ -986,13 +987,13 @@ The same operation will now perform element-wise addition:
986
987
pd.Index(['a', 'b']) + pd.Index(['a', 'c'])
987
988
988
989
Note that numeric Index objects already performed element-wise operations.
989
-
For example, the behaviour of adding two integer Indexes:
990
+
For example, the behavior of adding two integer Indexes:
990
991
991
992
.. ipython:: python
992
993
993
994
pd.Index([1, 2, 3]) + pd.Index([2, 3, 4])
994
995
995
-
is unchanged. The base ``Index`` is now made consistent with this behaviour.
996
+
is unchanged. The base ``Index`` is now made consistent with this behavior.
996
997
997
998
998
999
.. _whatsnew_0190.api.difference:
@@ -1143,7 +1144,7 @@ the result of calling :func:`read_csv` without the ``chunksize=`` argument.
1143
1144
1144
1145
data = 'A,B\n0,1\n2,3\n4,5\n6,7'
1145
1146
1146
-
Previous behaviour:
1147
+
Previous Behavior:
1147
1148
1148
1149
.. code-block:: ipython
1149
1150
@@ -1155,7 +1156,7 @@ Previous behaviour:
1155
1156
0 4 5
1156
1157
1 6 7
1157
1158
1158
-
New behaviour:
1159
+
New Behavior:
1159
1160
1160
1161
.. ipython :: python
1161
1162
@@ -1281,7 +1282,7 @@ These types are the same on many platform, but for 64 bit python on Windows,
1281
1282
``np.int_`` is 32 bits, and ``np.intp`` is 64 bits. Changing this behavior improves performance for many
0 commit comments