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/development/contributing_codebase.rst
+1-1
Original file line number
Diff line number
Diff line change
@@ -223,7 +223,7 @@ In some cases you may be tempted to use ``cast`` from the typing module when you
223
223
...
224
224
else: # Reasonably only str objects would reach this but...
225
225
obj = cast(str, obj) # Mypy complains without this!
226
-
return obj.upper()
226
+
return obj.upper()
227
227
228
228
The limitation here is that while a human can reasonably understand that ``is_number`` would catch the ``int`` and ``float`` types mypy cannot make that same inference just yet (see `mypy #5206 <https://github.com/python/mypy/issues/5206>`_. While the above works, the use of ``cast`` is **strongly discouraged**. Where applicable a refactor of the code to appease static analysis is preferable
Copy file name to clipboardExpand all lines: doc/source/whatsnew/v0.19.0.rst
+1-1
Original file line number
Diff line number
Diff line change
@@ -1553,7 +1553,7 @@ Bug fixes
1553
1553
- Bug in invalid datetime parsing in ``to_datetime`` and ``DatetimeIndex`` may raise ``TypeError`` rather than ``ValueError`` (:issue:`11169`, :issue:`11287`)
1554
1554
- Bug in ``Index`` created with tz-aware ``Timestamp`` and mismatched ``tz`` option incorrectly coerces timezone (:issue:`13692`)
1555
1555
- Bug in ``DatetimeIndex`` with nanosecond frequency does not include timestamp specified with ``end`` (:issue:`13672`)
1556
-
- Bug in ```Series`` when setting a slice with a ``np.timedelta64`` (:issue:`14155`)
1556
+
- Bug in ``Series`` when setting a slice with a ``np.timedelta64`` (:issue:`14155`)
1557
1557
- Bug in ``Index`` raises ``OutOfBoundsDatetime`` if ``datetime`` exceeds ``datetime64[ns]`` bounds, rather than coercing to ``object`` dtype (:issue:`13663`)
1558
1558
- Bug in ``Index`` may ignore specified ``datetime64`` or ``timedelta64`` passed as ``dtype`` (:issue:`13981`)
1559
1559
- Bug in ``RangeIndex`` can be created without no arguments rather than raises ``TypeError`` (:issue:`13793`)
Copy file name to clipboardExpand all lines: doc/source/whatsnew/v0.21.1.rst
+1-1
Original file line number
Diff line number
Diff line change
@@ -125,7 +125,7 @@ Indexing
125
125
IO
126
126
^^
127
127
128
-
- Bug in class:`~pandas.io.stata.StataReader` not converting date/time columns with display formatting addressed (:issue:`17990`). Previously columns with display formatting were normally left as ordinal numbers and not converted to datetime objects.
128
+
- Bug in :class:`~pandas.io.stata.StataReader` not converting date/time columns with display formatting addressed (:issue:`17990`). Previously columns with display formatting were normally left as ordinal numbers and not converted to datetime objects.
129
129
- Bug in :func:`read_csv` when reading a compressed UTF-16 encoded file (:issue:`18071`)
130
130
- Bug in :func:`read_csv` for handling null values in index columns when specifying ``na_filter=False`` (:issue:`5239`)
131
131
- Bug in :func:`read_csv` when reading numeric category fields with high cardinality (:issue:`18186`)
Copy file name to clipboardExpand all lines: doc/source/whatsnew/v0.23.0.rst
+1-1
Original file line number
Diff line number
Diff line change
@@ -1126,7 +1126,7 @@ Removal of prior version deprecations/changes
1126
1126
- The ``Panel`` class has dropped the ``to_long`` and ``toLong`` methods (:issue:`19077`)
1127
1127
- The options ``display.line_with`` and ``display.height`` are removed in favor of ``display.width`` and ``display.max_rows`` respectively (:issue:`4391`, :issue:`19107`)
1128
1128
- The ``labels`` attribute of the ``Categorical`` class has been removed in favor of :attr:`Categorical.codes` (:issue:`7768`)
1129
-
- The ``flavor`` parameter have been removed from func:`to_sql` method (:issue:`13611`)
1129
+
- The ``flavor`` parameter have been removed from :func:`to_sql` method (:issue:`13611`)
1130
1130
- The modules ``pandas.tools.hashing`` and ``pandas.util.hashing`` have been removed (:issue:`16223`)
1131
1131
- The top-level functions ``pd.rolling_*``, ``pd.expanding_*`` and ``pd.ewm*`` have been removed (Deprecated since v0.18).
1132
1132
Instead, use the DataFrame/Series methods :attr:`~DataFrame.rolling`, :attr:`~DataFrame.expanding` and :attr:`~DataFrame.ewm` (:issue:`18723`)
Copy file name to clipboardExpand all lines: doc/source/whatsnew/v0.25.0.rst
+1-1
Original file line number
Diff line number
Diff line change
@@ -1121,7 +1121,7 @@ Indexing
1121
1121
- Bug in which :meth:`DataFrame.to_csv` caused a segfault for a reindexed data frame, when the indices were single-level :class:`MultiIndex` (:issue:`26303`).
1122
1122
- Fixed bug where assigning a :class:`arrays.PandasArray` to a :class:`pandas.core.frame.DataFrame` would raise error (:issue:`26390`)
1123
1123
- Allow keyword arguments forcallable local reference used in the :meth:`DataFrame.query` string (:issue:`26426`)
1124
-
- Fixed a ``KeyError`` when indexing a :class:`MultiIndex`` level with a list containing exactly one label, which is missing (:issue:`27148`)
1124
+
- Fixed a ``KeyError`` when indexing a :class:`MultiIndex` level with a list containing exactly one label, which is missing (:issue:`27148`)
1125
1125
- Bug which produced ``AttributeError`` on partial matching :class:`Timestamp`in a :class:`MultiIndex` (:issue:`26944`)
1126
1126
- Bug in :class:`Categorical`and :class:`CategoricalIndex`with :class:`Interval` values when using the ``in`` operator (``__contains``) with objects that are not comparable to the values in the ``Interval`` (:issue:`23705`)
1127
1127
- Bug in :meth:`DataFrame.loc`and :meth:`DataFrame.iloc` on a :class:`DataFrame`with a single timezone-aware datetime64[ns] column incorrectly returning a scalar instead of a :class:`Series` (:issue:`27110`)
0 commit comments