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/whatsnew/v1.5.0.rst
+71-17Lines changed: 71 additions & 17 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -154,8 +154,6 @@ from_dummies
154
154
155
155
Added new function :func:`~pandas.from_dummies` to convert a dummy coded :class:`DataFrame` into a categorical :class:`DataFrame`.
156
156
157
-
Example::
158
-
159
157
.. ipython:: python
160
158
161
159
import pandas as pd
@@ -308,7 +306,7 @@ Other enhancements
308
306
- :meth:`DataFrame.rolling` and :meth:`Series.rolling` now support a ``step`` parameter with fixed-length windows (:issue:`15354`)
309
307
- Implemented a ``bool``-dtype :class:`Index`, passing a bool-dtype array-like to ``pd.Index`` will now retain ``bool`` dtype instead of casting to ``object`` (:issue:`45061`)
310
308
- Implemented a complex-dtype :class:`Index`, passing a complex-dtype array-like to ``pd.Index`` will now retain complex dtype instead of casting to ``object`` (:issue:`45845`)
311
-
- :class:`Series` and :class:`DataFrame` with ``IntegerDtype`` now supports bitwise operations (:issue:`34463`)
309
+
- :class:`Series` and :class:`DataFrame` with :class:`IntegerDtype` now supports bitwise operations (:issue:`34463`)
312
310
- Add ``milliseconds`` field support for :class:`.DateOffset` (:issue:`43371`)
313
311
- :meth:`DataFrame.reset_index` now accepts a ``names`` argument which renames the index names (:issue:`6878`)
314
312
- :func:`concat` now raises when ``levels`` is given but ``keys`` is None (:issue:`46653`)
@@ -319,7 +317,7 @@ Other enhancements
319
317
- A :class:`errors.PerformanceWarning` is now thrown when using ``string[pyarrow]`` dtype with methods that don't dispatch to ``pyarrow.compute`` methods (:issue:`42613`)
320
318
- Added ``numeric_only`` argument to :meth:`Resampler.sum`, :meth:`Resampler.prod`, :meth:`Resampler.min`, :meth:`Resampler.max`, :meth:`Resampler.first`, and :meth:`Resampler.last` (:issue:`46442`)
321
319
- ``times`` argument in :class:`.ExponentialMovingWindow` now accepts ``np.timedelta64`` (:issue:`47003`)
322
-
- :class:`.DataError`, :class:`.SpecificationError`, :class:`.SettingWithCopyError`, :class:`.SettingWithCopyWarning`, :class:`.NumExprClobberingError`, :class:`.UndefinedVariableError`, :class:`.IndexingError`, :class:`.PyperclipException`, :class:`.PyperclipWindowsException`, :class:`.CSSWarning`, :class:`.PossibleDataLossError`, :class:`.ClosedFileError`, :class:`.IncompatibilityWarning`, :class:`.AttributeConflictWarning`, :class:`.DatabaseError, :class:`.PossiblePrecisionLoss, :class:`.ValueLabelTypeMismatch, :class:`.InvalidColumnName, and :class:`.CategoricalConversionWarning` are now exposed in ``pandas.errors`` (:issue:`27656`)
320
+
- :class:`.DataError`, :class:`.SpecificationError`, :class:`.SettingWithCopyError`, :class:`.SettingWithCopyWarning`, :class:`.NumExprClobberingError`, :class:`.UndefinedVariableError`, :class:`.IndexingError`, :class:`.PyperclipException`, :class:`.PyperclipWindowsException`, :class:`.CSSWarning`, :class:`.PossibleDataLossError`, :class:`.ClosedFileError`, :class:`.IncompatibilityWarning`, :class:`.AttributeConflictWarning`, :class:`.DatabaseError`, :class:`.PossiblePrecisionLoss`, :class:`.ValueLabelTypeMismatch`, :class:`.InvalidColumnName`, and :class:`.CategoricalConversionWarning` are now exposed in ``pandas.errors`` (:issue:`27656`)
323
321
- Added ``check_like`` argument to :func:`testing.assert_series_equal` (:issue:`47247`)
324
322
- Add support for :meth:`.GroupBy.ohlc` for extension array dtypes (:issue:`37493`)
325
323
- Allow reading compressed SAS files with :func:`read_sas` (e.g., ``.sas7bdat.gz`` files)
@@ -492,16 +490,6 @@ Calling :meth:`.DataFrameGroupBy.value_counts` with ``observed=True`` would inco
492
490
Backwards incompatible API changes
493
491
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
494
492
495
-
.. _whatsnew_150.api_breaking.api_breaking1:
496
-
497
-
api_breaking_change1
498
-
^^^^^^^^^^^^^^^^^^^^
499
-
500
-
.. _whatsnew_150.api_breaking.api_breaking2:
501
-
502
-
api_breaking_change2
503
-
^^^^^^^^^^^^^^^^^^^^
504
-
505
493
.. _whatsnew_150.api_breaking.deps:
506
494
507
495
Increased minimum versions for dependencies
@@ -568,7 +556,73 @@ Optional libraries below the lowest tested version may still work, but are not c
568
556
+-----------------+-----------------+---------+
569
557
| Package | Minimum Version | Changed |
570
558
+=================+=================+=========+
571
-
||| X |
559
+
| beautifulsoup4 |4.9.3 | X |
560
+
+-----------------+-----------------+---------+
561
+
| blosc |1.21.0 | X |
562
+
+-----------------+-----------------+---------+
563
+
| bottleneck |1.3.2 | X |
564
+
+-----------------+-----------------+---------+
565
+
| brotlipy |0.7.0 ||
566
+
+-----------------+-----------------+---------+
567
+
| fastparquet |0.4.0 ||
568
+
+-----------------+-----------------+---------+
569
+
| fsspec |2021.05.0 | X |
570
+
+-----------------+-----------------+---------+
571
+
| html5lib |1.1 ||
572
+
+-----------------+-----------------+---------+
573
+
| hypothesis |6.13.0 | X |
574
+
+-----------------+-----------------+---------+
575
+
| gcsfs |2021.05.0 | X |
576
+
+-----------------+-----------------+---------+
577
+
| jinja2 |3.0.0 | X |
578
+
+-----------------+-----------------+---------+
579
+
| lxml |4.6.3 | X |
580
+
+-----------------+-----------------+---------+
581
+
| matplotlib |3.3.2 ||
582
+
+-----------------+-----------------+---------+
583
+
| numba |0.53.1 | X |
584
+
+-----------------+-----------------+---------+
585
+
| numexpr |2.7.3 | X |
586
+
+-----------------+-----------------+---------+
587
+
| odfpy |1.4.1 ||
588
+
+-----------------+-----------------+---------+
589
+
| openpyxl |3.0.7 | X |
590
+
+-----------------+-----------------+---------+
591
+
| pandas-gbq |0.15.0 | X |
592
+
+-----------------+-----------------+---------+
593
+
| psycopg2 |2.8.6 | X |
594
+
+-----------------+-----------------+---------+
595
+
| pyarrow |1.0.1 ||
596
+
+-----------------+-----------------+---------+
597
+
| pymysql |1.0.2 | X |
598
+
+-----------------+-----------------+---------+
599
+
| pyreadstat |1.1.2 | X |
600
+
+-----------------+-----------------+---------+
601
+
| pytables |3.6.1 ||
602
+
+-----------------+-----------------+---------+
603
+
| python-snappy |0.6.0 ||
604
+
+-----------------+-----------------+---------+
605
+
| pyxlsb |1.0.8 | X |
606
+
+-----------------+-----------------+---------+
607
+
| s3fs |2021.05.0 | X |
608
+
+-----------------+-----------------+---------+
609
+
| scipy |1.7.1 | X |
610
+
+-----------------+-----------------+---------+
611
+
| sqlalchemy |1.4.16 | X |
612
+
+-----------------+-----------------+---------+
613
+
| tabulate |0.8.9 | X |
614
+
+-----------------+-----------------+---------+
615
+
| tzdata |2022a ||
616
+
+-----------------+-----------------+---------+
617
+
| xarray |0.19.0 | X |
618
+
+-----------------+-----------------+---------+
619
+
| xlrd |2.0.1 ||
620
+
+-----------------+-----------------+---------+
621
+
| xlsxwriter |1.4.3 | X |
622
+
+-----------------+-----------------+---------+
623
+
| xlwt |1.3.0 ||
624
+
+-----------------+-----------------+---------+
625
+
| zstandard |0.15.2 ||
572
626
+-----------------+-----------------+---------+
573
627
574
628
See :ref:`install.dependencies` and :ref:`install.optional_dependencies` for more.
@@ -704,7 +758,7 @@ retained by specifying ``group_keys=False``.
704
758
705
759
Inplace operation when setting values with ``loc`` and ``iloc``
Most of the time setting values with ``frame.iloc`` attempts to set values
761
+
Most of the time setting values with :meth:`DataFrame.iloc` attempts to set values
708
762
inplace, only falling back to inserting a new array if necessary. There are
709
763
some cases where this rule is not followed, for example when setting an entire
710
764
column from an array with different dtype:
@@ -925,7 +979,7 @@ Categorical
925
979
^^^^^^^^^^^
926
980
- Bug in :meth:`.Categorical.view` not accepting integer dtypes (:issue:`25464`)
927
981
- Bug in :meth:`.CategoricalIndex.union` when the index's categories are integer-dtype and the index contains ``NaN`` values incorrectly raising instead of casting to ``float64`` (:issue:`45362`)
928
-
- Bug in :meth:`DataFrame.concat` when concatenating two (or more) unordered ``CategoricalIndex`` variables, whose categories are permutations, yields incorrect index values (:issue:`24845`)
982
+
- Bug in :meth:`concat` when concatenating two (or more) unordered :class:`CategoricalIndex` variables, whose categories are permutations, yields incorrect index values (:issue:`24845`)
0 commit comments