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-17
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)
@@ -491,16 +489,6 @@ Calling :meth:`.DataFrameGroupBy.value_counts` with ``observed=True`` would inco
491
489
Backwards incompatible API changes
492
490
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
493
491
494
-
.. _whatsnew_150.api_breaking.api_breaking1:
495
-
496
-
api_breaking_change1
497
-
^^^^^^^^^^^^^^^^^^^^
498
-
499
-
.. _whatsnew_150.api_breaking.api_breaking2:
500
-
501
-
api_breaking_change2
502
-
^^^^^^^^^^^^^^^^^^^^
503
-
504
492
.. _whatsnew_150.api_breaking.deps:
505
493
506
494
Increased minimum versions for dependencies
@@ -567,7 +555,73 @@ Optional libraries below the lowest tested version may still work, but are not c
567
555
+-----------------+-----------------+---------+
568
556
| Package | Minimum Version | Changed |
569
557
+=================+=================+=========+
570
-
||| X |
558
+
| beautifulsoup4 |4.9.3 | X |
559
+
+-----------------+-----------------+---------+
560
+
| blosc |1.21.0 | X |
561
+
+-----------------+-----------------+---------+
562
+
| bottleneck |1.3.2 | X |
563
+
+-----------------+-----------------+---------+
564
+
| brotlipy |0.7.0 ||
565
+
+-----------------+-----------------+---------+
566
+
| fastparquet |0.4.0 ||
567
+
+-----------------+-----------------+---------+
568
+
| fsspec |2021.05.0 | X |
569
+
+-----------------+-----------------+---------+
570
+
| html5lib |1.1 ||
571
+
+-----------------+-----------------+---------+
572
+
| hypothesis |6.13.0 | X |
573
+
+-----------------+-----------------+---------+
574
+
| gcsfs |2021.05.0 | X |
575
+
+-----------------+-----------------+---------+
576
+
| jinja2 |3.0.0 | X |
577
+
+-----------------+-----------------+---------+
578
+
| lxml |4.6.3 | X |
579
+
+-----------------+-----------------+---------+
580
+
| matplotlib |3.3.2 ||
581
+
+-----------------+-----------------+---------+
582
+
| numba |0.53.1 | X |
583
+
+-----------------+-----------------+---------+
584
+
| numexpr |2.7.3 | X |
585
+
+-----------------+-----------------+---------+
586
+
| odfpy |1.4.1 ||
587
+
+-----------------+-----------------+---------+
588
+
| openpyxl |3.0.7 | X |
589
+
+-----------------+-----------------+---------+
590
+
| pandas-gbq |0.15.0 | X |
591
+
+-----------------+-----------------+---------+
592
+
| psycopg2 |2.8.6 | X |
593
+
+-----------------+-----------------+---------+
594
+
| pyarrow |1.0.1 ||
595
+
+-----------------+-----------------+---------+
596
+
| pymysql |1.0.2 | X |
597
+
+-----------------+-----------------+---------+
598
+
| pyreadstat |1.1.2 | X |
599
+
+-----------------+-----------------+---------+
600
+
| pytables |3.6.1 ||
601
+
+-----------------+-----------------+---------+
602
+
| python-snappy |0.6.0 ||
603
+
+-----------------+-----------------+---------+
604
+
| pyxlsb |1.0.8 | X |
605
+
+-----------------+-----------------+---------+
606
+
| s3fs |2021.05.0 | X |
607
+
+-----------------+-----------------+---------+
608
+
| scipy |1.7.1 | X |
609
+
+-----------------+-----------------+---------+
610
+
| sqlalchemy |1.4.16 | X |
611
+
+-----------------+-----------------+---------+
612
+
| tabulate |0.8.9 | X |
613
+
+-----------------+-----------------+---------+
614
+
| tzdata |2022a ||
615
+
+-----------------+-----------------+---------+
616
+
| xarray |0.19.0 | X |
617
+
+-----------------+-----------------+---------+
618
+
| xlrd |2.0.1 ||
619
+
+-----------------+-----------------+---------+
620
+
| xlsxwriter |1.4.3 | X |
621
+
+-----------------+-----------------+---------+
622
+
| xlwt |1.3.0 ||
623
+
+-----------------+-----------------+---------+
624
+
| zstandard |0.15.2 ||
571
625
+-----------------+-----------------+---------+
572
626
573
627
See :ref:`install.dependencies` and :ref:`install.optional_dependencies` for more.
@@ -703,7 +757,7 @@ retained by specifying ``group_keys=False``.
703
757
704
758
Inplace operation when setting values with ``loc`` and ``iloc``
Most of the time setting values with ``frame.iloc`` attempts to set values
760
+
Most of the time setting values with :meth:`DataFrame.iloc` attempts to set values
707
761
inplace, only falling back to inserting a new array if necessary. There are
708
762
some cases where this rule is not followed, for example when setting an entire
709
763
column from an array with different dtype:
@@ -924,7 +978,7 @@ Categorical
924
978
^^^^^^^^^^^
925
979
- Bug in :meth:`.Categorical.view` not accepting integer dtypes (:issue:`25464`)
926
980
- 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`)
927
-
- Bug in :meth:`DataFrame.concat` when concatenating two (or more) unordered ``CategoricalIndex`` variables, whose categories are permutations, yields incorrect index values (:issue:`24845`)
981
+
- 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