chunk_id large_stringlengths 36 36 | doc_type large_stringclasses 2
values | category large_stringclasses 17
values | document large_stringclasses 50
values | version_raw large_stringclasses 590
values | chunk_index int64 0 262 | text large_stringlengths 11 5.69k | file_path large_stringclasses 882
values |
|---|---|---|---|---|---|---|---|
14ef86ff-9284-502b-a33f-65df547a0cbc | changelog | pandas | pandas_whatsnew | 0.24.0 | 71 | ### Series and Index data-dtype incompatibilities[#](#series-and-index-data-dtype-incompatibilities "Link to this heading")
`Series` and `Index` constructors now raise when the
data is incompatible with a passed `dtype=` ([GH 15832](https://github.com/pandas-dev/pandas/issues/15832))
*Previous behavior*:
```None
In ... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.24.0.md |
31de2af3-da39-54d8-a236-746646892d67 | changelog | pandas | pandas_whatsnew | 0.24.0 | 72 | In [97]: c = pd.Series([0, 1, np.nan], dtype="category")
```
*Previous behavior*
```None
In [3]: pd.concat([s, c])
Out[3]:
0 0.0
1 1.0
2 NaN
0 0.0
1 1.0
2 NaN
dtype: float64
```
*New behavior*
```None
In [98]: pd.concat([s, c])
Out[98]:
0 0.0
1 1.0
2 NaN
0 0.0
1 1.0
2 NaN
Length... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.24.0.md |
f920bb1e-8e2e-57ef-a6ca-b65daca6d406 | changelog | pandas | pandas_whatsnew | 0.24.0 | 73 | * [`PeriodIndex`](../reference/api/pandas.PeriodIndex.html#pandas.PeriodIndex "pandas.PeriodIndex") subtraction of another `PeriodIndex` will now return an object-dtype [`Index`](../reference/api/pandas.Index.html#pandas.Index "pandas.Index") of `DateOffset` objects instead of raising a `TypeError` ([GH 20049](https://... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.24.0.md |
f368e463-0506-56bf-8dd7-2c4d8dd0e376 | changelog | pandas | pandas_whatsnew | 0.24.0 | 74 | * [`DatetimeIndex.to_period()`](../reference/api/pandas.DatetimeIndex.to_period.html#pandas.DatetimeIndex.to_period "pandas.DatetimeIndex.to_period") and [`Timestamp.to_period()`](../reference/api/pandas.Timestamp.to_period.html#pandas.Timestamp.to_period "pandas.Timestamp.to_period") will issue a warning when timezone... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.24.0.md |
a2df067b-1ed7-57f4-aabb-e767ca6be1a9 | changelog | pandas | pandas_whatsnew | 0.24.0 | 75 | * [`Series.str.cat()`](../reference/api/pandas.Series.str.cat.html#pandas.Series.str.cat "pandas.Series.str.cat") will now raise if `others` is a `set` ([GH 23009](https://github.com/pandas-dev/pandas/issues/23009))
* Passing scalar values to [`DatetimeIndex`](../reference/api/pandas.DatetimeIndex.html#pandas.DatetimeI... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.24.0.md |
cc5a885d-b2d3-57d2-911e-857e8222e2ee | changelog | pandas | pandas_whatsnew | 0.24.0 | 76 | * The column order of the resultant [`DataFrame`](../reference/api/pandas.DataFrame.html#pandas.DataFrame "pandas.DataFrame") from [`MultiIndex.to_frame()`](../reference/api/pandas.MultiIndex.to_frame.html#pandas.MultiIndex.to_frame "pandas.MultiIndex.to_frame") is now guaranteed to match the [`MultiIndex.names`](../re... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.24.0.md |
4d04e59c-329e-5ec8-84b0-02385eb0083c | changelog | pandas | pandas_whatsnew | 0.24.0 | 77 | * `pd.offsets.generate_range()` argument `time_rule` has been removed; use `offset` instead ([GH 24157](https://github.com/pandas-dev/pandas/issues/24157))
* In 0.23.x, pandas would raise a `ValueError` on a merge of a numeric column (e.g. `int` dtyped column) and an `object` dtyped column ([GH 9780](https://github.com... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.24.0.md |
6b8f5ee9-bfee-5bc7-9dae-4c2c1d4a7408 | changelog | pandas | pandas_whatsnew | 0.24.0 | 78 | * Invalid construction of `IntervalDtype` will now always raise a `TypeError` rather than a `ValueError` if the subdtype is invalid ([GH 21185](https://github.com/pandas-dev/pandas/issues/21185))
* Trying to reindex a `DataFrame` with a non unique `MultiIndex` now raises a `ValueError` instead of an `Exception` ([GH 21... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.24.0.md |
2b98e90b-0ab5-5adb-9374-f0b8c8acb8c0 | changelog | pandas | pandas_whatsnew | 0.24.0 | 79 | * [`DataFrame.corr()`](../reference/api/pandas.DataFrame.corr.html#pandas.DataFrame.corr "pandas.DataFrame.corr") and [`Series.corr()`](../reference/api/pandas.Series.corr.html#pandas.Series.corr "pandas.Series.corr") now raise a `ValueError` along with a helpful error message instead of a `KeyError` when supplied with... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.24.0.md |
6913d513-17f6-504c-805d-c21eb48d2206 | changelog | pandas | pandas_whatsnew | 0.24.0 | 80 | * Slicing a single row of a DataFrame with multiple ExtensionArrays of the same type now preserves the dtype, rather than coercing to object ([GH 22784](https://github.com/pandas-dev/pandas/issues/22784))
* `DateOffset` attribute `_cacheable` and method `_should_cache` have been removed ([GH 23118](https://github.com/p... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.24.0.md |
8dd7903e-f9b8-50e1-97b1-5e1528b5088d | changelog | pandas | pandas_whatsnew | 0.24.0 | 81 | * [`Index.hasnans()`](../reference/api/pandas.Index.hasnans.html#pandas.Index.hasnans "pandas.Index.hasnans") and [`Series.hasnans()`](../reference/api/pandas.Series.hasnans.html#pandas.Series.hasnans "pandas.Series.hasnans") now always return a python boolean. Previously, a python or a numpy boolean could be returned,... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.24.0.md |
ec54b6b8-e35d-5b77-b016-83a32d56d6c1 | changelog | pandas | pandas_whatsnew | 0.24.0 | 82 | * `CategoricalIndex.reindex()` now raises a `ValueError` if the target index is non-unique and not equal to the current index. It previously only raised if the target index was not of a categorical dtype ([GH 23963](https://github.com/pandas-dev/pandas/issues/23963)).
* [`Series.to_list()`](../reference/api/pandas.Seri... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.24.0.md |
f76b9d0a-ac9f-509e-a45f-7fd6f6a6c897 | changelog | pandas | pandas_whatsnew | 0.24.0 | 83 | * [`DatetimeIndex`](../reference/api/pandas.DatetimeIndex.html#pandas.DatetimeIndex "pandas.DatetimeIndex") and [`TimedeltaIndex`](../reference/api/pandas.TimedeltaIndex.html#pandas.TimedeltaIndex "pandas.TimedeltaIndex") no longer ignore the dtype precision. Passing a non-nanosecond resolution dtype will raise a `Valu... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.24.0.md |
8d08c3cf-ec9b-5afb-b0b4-01b85b318761 | changelog | pandas | pandas_whatsnew | 0.24.0 | 84 | `__init__` method. See [`pandas.api.extensions.ExtensionDtype`](../reference/api/pandas.api.extensions.ExtensionDtype.html#pandas.api.extensions.ExtensionDtype "pandas.api.extensions.ExtensionDtype") for more ([GH 22476](https://github.com/pandas-dev/pandas/issues/22476)).
**New and changed methods**
* `dropna()` has... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.24.0.md |
eb5379a5-3735-5cae-bbc1-5457ae393e9e | changelog | pandas | pandas_whatsnew | 0.24.0 | 85 | * `searchsorted()` has been added ([GH 24350](https://github.com/pandas-dev/pandas/issues/24350))
* Support for reduction operations such as `sum`, `mean` via opt-in base class method override ([GH 22762](https://github.com/pandas-dev/pandas/issues/22762))
* `ExtensionArray.isna()` is allowed to return an `ExtensionArr... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.24.0.md |
bf02d77a-ddcf-59c0-9b08-2d93fb66244e | changelog | pandas | pandas_whatsnew | 0.24.0 | 86 | * Updated the `.type` attribute for `PeriodDtype`, `DatetimeTZDtype`, and `IntervalDtype` to be instances of the dtype (`Period`, `Timestamp`, and `Interval` respectively) ([GH 22938](https://github.com/pandas-dev/pandas/issues/22938))
**Operator support**
A `Series` based on an `ExtensionArray` now supports arithmet... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.24.0.md |
30792320-8573-546a-942b-0b49aed2d569 | changelog | pandas | pandas_whatsnew | 0.24.0 | 87 | * A default repr for [`pandas.api.extensions.ExtensionArray`](../reference/api/pandas.api.extensions.ExtensionArray.html#pandas.api.extensions.ExtensionArray "pandas.api.extensions.ExtensionArray") is now provided ([GH 23601](https://github.com/pandas-dev/pandas/issues/23601)).
* `ExtensionArray._formatting_values()` i... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.24.0.md |
751d8048-2f2c-57ff-9bd2-58af2c774f80 | changelog | pandas | pandas_whatsnew | 0.24.0 | 88 | * [`shift()`](../reference/api/pandas.Series.shift.html#pandas.Series.shift "pandas.Series.shift") now dispatches to `ExtensionArray.shift()` ([GH 22386](https://github.com/pandas-dev/pandas/issues/22386))
* [`Series.combine()`](../reference/api/pandas.Series.combine.html#pandas.Series.combine "pandas.Series.combine") ... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.24.0.md |
da8ef99b-343c-5df5-a631-b0ec8767c8dc | changelog | pandas | pandas_whatsnew | 0.24.0 | 89 | * [`Series.astype()`](../reference/api/pandas.Series.astype.html#pandas.Series.astype "pandas.Series.astype") and [`DataFrame.astype()`](../reference/api/pandas.DataFrame.astype.html#pandas.DataFrame.astype "pandas.DataFrame.astype") now dispatch to `ExtensionArray.astype()` ([GH 21185](https://github.com/pandas-dev/pa... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.24.0.md |
6b5eadd6-af10-5915-b47a-c40436c93acf | changelog | pandas | pandas_whatsnew | 0.24.0 | 90 | * [`DataFrame.stack()`](../reference/api/pandas.DataFrame.stack.html#pandas.DataFrame.stack "pandas.DataFrame.stack") no longer converts to object dtype for DataFrames where each column has the same extension dtype. The output Series will have the same dtype as the columns ([GH 23077](https://github.com/pandas-dev/pand... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.24.0.md |
6bc0b8f8-21d3-5b3d-83be-1aa2ff5338f9 | changelog | pandas | pandas_whatsnew | 0.24.0 | 91 | * Bug in [`pandas.merge()`](../reference/api/pandas.merge.html#pandas.merge "pandas.merge") when merging on an extension array-backed column ([GH 23020](https://github.com/pandas-dev/pandas/issues/23020)).
## Deprecations[#](#deprecations "Link to this heading")
* `MultiIndex.labels` has been deprecated and replaced ... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.24.0.md |
38a04501-a316-5cbe-819c-5b0de934e282 | changelog | pandas | pandas_whatsnew | 0.24.0 | 92 | + `MultiIndex.set_labels` has been deprecated in favor of [`MultiIndex.set_codes()`](../reference/api/pandas.MultiIndex.set_codes.html#pandas.MultiIndex.set_codes "pandas.MultiIndex.set_codes").
+ For method [`MultiIndex.copy()`](../reference/api/pandas.MultiIndex.copy.html#pandas.MultiIndex.copy "pandas.MultiIndex... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.24.0.md |
8bb5e027-f1c8-5b06-ba3d-72a6a4c7906e | changelog | pandas | pandas_whatsnew | 0.24.0 | 93 | * `Series.ptp()` is deprecated. Use `numpy.ptp` instead ([GH 21614](https://github.com/pandas-dev/pandas/issues/21614))
* `Series.compress()` is deprecated. Use `Series[condition]` instead ([GH 18262](https://github.com/pandas-dev/pandas/issues/18262))
* The signature of [`Series.to_csv()`](../reference/api/pandas.Seri... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.24.0.md |
68b77c71-3881-5dfa-a3db-80181d1e1522 | changelog | pandas | pandas_whatsnew | 0.24.0 | 94 | * [`pandas.read_table()`](../reference/api/pandas.read_table.html#pandas.read_table "pandas.read_table") is deprecated. Instead, use [`read_csv()`](../reference/api/pandas.read_csv.html#pandas.read_csv "pandas.read_csv") passing `sep='\t'` if necessary. This deprecation has been removed in 0.25.0. ([GH 21948](https://g... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.24.0.md |
6d70f89c-d3fb-581e-9ca5-5258d85f0647 | changelog | pandas | pandas_whatsnew | 0.24.0 | 95 | * `DatetimeIndex.shift()` and `PeriodIndex.shift()` now accept `periods` argument instead of `n` for consistency with [`Index.shift()`](../reference/api/pandas.Index.shift.html#pandas.Index.shift "pandas.Index.shift") and [`Series.shift()`](../reference/api/pandas.Series.shift.html#pandas.Series.shift "pandas.Series.sh... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.24.0.md |
976a2c6d-ff08-56ca-816f-675be5b65e66 | changelog | pandas | pandas_whatsnew | 0.24.0 | 96 | * [`Timestamp.tz_localize()`](../reference/api/pandas.Timestamp.tz_localize.html#pandas.Timestamp.tz_localize "pandas.Timestamp.tz_localize"), [`DatetimeIndex.tz_localize()`](../reference/api/pandas.DatetimeIndex.tz_localize.html#pandas.DatetimeIndex.tz_localize "pandas.DatetimeIndex.tz_localize"), and [`Series.tz_loca... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.24.0.md |
855daf94-a03d-583f-879a-854c2aa3f55d | changelog | pandas | pandas_whatsnew | 0.24.0 | 97 | * The methods [`DataFrame.update()`](../reference/api/pandas.DataFrame.update.html#pandas.DataFrame.update "pandas.DataFrame.update") and `Panel.update()` have deprecated the `raise_conflict=False|True` keyword in favor of `errors='ignore'|'raise'` ([GH 23585](https://github.com/pandas-dev/pandas/issues/23585))
* The m... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.24.0.md |
e8c34234-2523-554c-bd43-ce0bbf7bc061 | changelog | pandas | pandas_whatsnew | 0.24.0 | 98 | * [`pandas.read_excel()`](../reference/api/pandas.read_excel.html#pandas.read_excel "pandas.read_excel") has deprecated accepting `usecols` as an integer. Please pass in a list of ints from 0 to `usecols` inclusive instead ([GH 23527](https://github.com/pandas-dev/pandas/issues/23527))
* Constructing a [`TimedeltaIndex... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.24.0.md |
5411700c-e9d4-52a8-9c9c-ea0bad95ba60 | changelog | pandas | pandas_whatsnew | 0.24.0 | 99 | [`DatetimeIndex.to_series()`](../reference/api/pandas.DatetimeIndex.to_series.html#pandas.DatetimeIndex.to_series "pandas.DatetimeIndex.to_series") is deprecated ([GH 17832](https://github.com/pandas-dev/pandas/issues/17832)).
* Timezone converting a tz-aware `datetime.datetime` or [`Timestamp`](../reference/api/pand... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.24.0.md |
5aa58cdf-890e-5801-a155-5b777337c897 | changelog | pandas | pandas_whatsnew | 0.24.0 | 100 | * `pandas.api.types.is_datetimetz()` is deprecated in favor of `pandas.api.types.is_datetime64tz` ([GH 23917](https://github.com/pandas-dev/pandas/issues/23917))
* Creating a [`TimedeltaIndex`](../reference/api/pandas.TimedeltaIndex.html#pandas.TimedeltaIndex "pandas.TimedeltaIndex"), [`DatetimeIndex`](../reference/api... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.24.0.md |
669dd95b-1884-505b-8b5a-079be5de83b2 | changelog | pandas | pandas_whatsnew | 0.24.0 | 101 | * Passing a string alias like `'datetime64[ns, UTC]'` as the `unit` parameter to [`DatetimeTZDtype`](../reference/api/pandas.DatetimeTZDtype.html#pandas.DatetimeTZDtype "pandas.DatetimeTZDtype") is deprecated. Use `DatetimeTZDtype.construct_from_string` instead ([GH 23990](https://github.com/pandas-dev/pandas/issues/23... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.24.0.md |
9efb6118-0748-5236-a01c-59fc887b49d9 | changelog | pandas | pandas_whatsnew | 0.24.0 | 102 | * In [`Series.where()`](../reference/api/pandas.Series.where.html#pandas.Series.where "pandas.Series.where") with Categorical data, providing an `other` that is not present in the categories is deprecated. Convert the categorical to a different dtype or add the `other` to the categories first ([GH 24077](https://github... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.24.0.md |
5e94043c-4a75-5943-b107-a39d2f2e95a6 | changelog | pandas | pandas_whatsnew | 0.24.0 | 103 | * Passing an integer to [`Series.fillna()`](../reference/api/pandas.Series.fillna.html#pandas.Series.fillna "pandas.Series.fillna") and [`DataFrame.fillna()`](../reference/api/pandas.DataFrame.fillna.html#pandas.DataFrame.fillna "pandas.DataFrame.fillna") with `timedelta64[ns]` dtypes is deprecated, will raise `TypeErr... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.24.0.md |
151d6d67-1143-5c45-80ff-ae1757e47dda | changelog | pandas | pandas_whatsnew | 0.24.0 | 104 | * Passing a dtype without a precision like `np.dtype('datetime64')` or `timedelta64` to [`Index`](../reference/api/pandas.Index.html#pandas.Index "pandas.Index"), [`DatetimeIndex`](../reference/api/pandas.DatetimeIndex.html#pandas.DatetimeIndex "pandas.DatetimeIndex") and [`TimedeltaIndex`](../reference/api/pandas.Time... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.24.0.md |
1fb2a4e5-85c2-5e87-beae-6605be699f1a | changelog | pandas | pandas_whatsnew | 0.24.0 | 105 | arrays from [`Timestamp`](../reference/api/pandas.Timestamp.html#pandas.Timestamp "pandas.Timestamp"), [`DatetimeIndex`](../reference/api/pandas.DatetimeIndex.html#pandas.DatetimeIndex "pandas.DatetimeIndex") and [`TimedeltaIndex`](../reference/api/pandas.TimedeltaIndex.html#pandas.TimedeltaIndex "pandas.TimedeltaIndex... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.24.0.md |
3a2d395a-9a9f-5e81-a50d-e3b8df8e16b8 | changelog | pandas | pandas_whatsnew | 0.24.0 | 106 | Out[10]: DatetimeIndex(['2001-01-08', '2001-01-22'], dtype='datetime64[ns]', freq=None)
```
*New behavior*:
```None
In [108]: ts = pd.Timestamp('1994-05-06 12:15:16', freq=pd.offsets.Hour())
In[109]: ts + 2 * ts.freq
Out[109]: Timestamp('1994-05-06 14:15:16', freq='H')
In [110]: tdi = pd.timedelta_range('1D', perio... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.24.0.md |
98eba15a-25d8-56c0-be4f-47c08178f9c4 | changelog | pandas | pandas_whatsnew | 0.24.0 | 107 | a timezone is changing in a future version of pandas. Previously, these
were interpreted as wall times in the desired timezone. In the future,
these will be interpreted as wall times in UTC, which are then converted
to the desired timezone ([GH 24559](https://github.com/pandas-dev/pandas/issues/24559)).
The default be... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.24.0.md |
0cd77106-06d4-5e25-b609-ff79ae1709e1 | changelog | pandas | pandas_whatsnew | 0.24.0 | 108 | To keep the previous behavior, use
pd.to_datetime(integer_data).tz_localize(tz)
#!/bin/python3
Out[3]: DatetimeIndex(['2000-01-01 00:00:00-06:00'], dtype='datetime64[ns, US/Central]', freq=None)
```
As the warning message explains, opt in to the future behavior by specifying that
the integer values are... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.24.0.md |
51be0ce8-2c69-5854-b470-80552624d60b | changelog | pandas | pandas_whatsnew | 0.24.0 | 109 | ### Converting timezone-aware Series and Index to NumPy arrays[#](#converting-timezone-aware-series-and-index-to-numpy-arrays "Link to this heading")
The conversion from a [`Series`](../reference/api/pandas.Series.html#pandas.Series "pandas.Series") or [`Index`](../reference/api/pandas.Index.html#pandas.Index "pandas.... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.24.0.md |
f2b3be84-e980-5760-803d-4e5cef28e0ce | changelog | pandas | pandas_whatsnew | 0.24.0 | 110 | 3. returning a [`numpy.ndarray`](https://numpy.org/doc/stable/reference/generated/numpy.ndarray.html#numpy.ndarray "(in NumPy v2.3)") with `datetime64[ns]` dtype
Future versions of pandas will preserve the timezone information by returning an
object-dtype NumPy array where each value is a [`Timestamp`](../reference/ap... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.24.0.md |
47998108-25f7-596d-b140-2f721f2ba9a5 | changelog | pandas | pandas_whatsnew | 0.24.0 | 111 | To accept the future behavior, pass 'dtype=object'.
To keep the old behavior, pass 'dtype="datetime64[ns]"'.
#!/bin/python3
Out[8]:
array(['1999-12-31T23:00:00.000000000', '2000-01-01T23:00:00.000000000'],
dtype='datetime64[ns]')
```
The previous or future behavior can be obtained, without any ... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.24.0.md |
e210d748-f5fd-58e0-b2bc-7094aa40b524 | changelog | pandas | pandas_whatsnew | 0.24.0 | 112 | Timestamp('2000-01-02 00:00:00+0100', tz='CET')], dtype=object)
In [106]: ser.to_numpy(dtype="datetime64[ns]")
Out[106]:
array(['1999-12-31T23:00:00.000000000', '2000-01-01T23:00:00.000000000'],
dtype='datetime64[ns]')
```
All the above applies to a [`DatetimeIndex`](../reference/api/pandas.DatetimeInde... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.24.0.md |
05ca7a27-f6f0-5593-85c0-544a0bf94c2c | changelog | pandas | pandas_whatsnew | 0.24.0 | 113 | * Removal of the previously deprecated module `pandas.core.datetools` ([GH 14105](https://github.com/pandas-dev/pandas/issues/14105), [GH 14094](https://github.com/pandas-dev/pandas/issues/14094))
* Strings passed into [`DataFrame.groupby()`](../reference/api/pandas.DataFrame.groupby.html#pandas.DataFrame.groupby "pand... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.24.0.md |
90ec6f36-f1fd-5745-9f93-39ffcdb39cc2 | changelog | pandas | pandas_whatsnew | 0.24.0 | 114 | * Removal of the previously deprecated `as_indexer` keyword completely from `str.match()` ([GH 22356](https://github.com/pandas-dev/pandas/issues/22356), [GH 6581](https://github.com/pandas-dev/pandas/issues/6581))
* The modules `pandas.types`, `pandas.computation`, and `pandas.util.decorators` have been removed ([GH 1... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.24.0.md |
e345c25e-6703-5ece-bbd5-4030f86cab9c | changelog | pandas | pandas_whatsnew | 0.24.0 | 115 | * `Categorical.searchsorted()` and [`Series.searchsorted()`](../reference/api/pandas.Series.searchsorted.html#pandas.Series.searchsorted "pandas.Series.searchsorted") have renamed the `v` argument to `value` ([GH 14645](https://github.com/pandas-dev/pandas/issues/14645))
* `pandas.parser`, `pandas.lib`, and `pandas.tsl... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.24.0.md |
b4f0b31e-0b14-5e1d-b58a-de71c93e1c45 | changelog | pandas | pandas_whatsnew | 0.24.0 | 116 | * The module `pandas.tools` has been removed ([GH 15358](https://github.com/pandas-dev/pandas/issues/15358), [GH 16005](https://github.com/pandas-dev/pandas/issues/16005))
* `SparseArray.get_values()` and `SparseArray.to_dense()` have dropped the `fill` parameter ([GH 14686](https://github.com/pandas-dev/pandas/issues/... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.24.0.md |
fa1b2931-a5ee-5dde-9815-9e6f7f66cad9 | changelog | pandas | pandas_whatsnew | 0.24.0 | 117 | * `is_sequence`, `is_any_int_dtype`, and `is_floating_dtype` have been removed from `pandas.api.types` ([GH 16163](https://github.com/pandas-dev/pandas/issues/16163), [GH 16189](https://github.com/pandas-dev/pandas/issues/16189))
## Performance improvements[#](#performance-improvements "Link to this heading")
* Slici... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.24.0.md |
3e4796ee-ca56-54ee-bdfd-c7b638f5501e | changelog | pandas | pandas_whatsnew | 0.24.0 | 118 | * Improved performance of [`CategoricalIndex.equals()`](../reference/api/pandas.CategoricalIndex.equals.html#pandas.CategoricalIndex.equals "pandas.CategoricalIndex.equals") when comparing to another [`CategoricalIndex`](../reference/api/pandas.CategoricalIndex.html#pandas.CategoricalIndex "pandas.CategoricalIndex") ([... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.24.0.md |
ccc92a9c-3bcc-5b43-9df8-22b37f13884c | changelog | pandas | pandas_whatsnew | 0.24.0 | 119 | * Improved performance of [`DataFrame.set_index()`](../reference/api/pandas.DataFrame.set_index.html#pandas.DataFrame.set_index "pandas.DataFrame.set_index") with columns consisting of [`Period`](../reference/api/pandas.Period.html#pandas.Period "pandas.Period") objects ([GH 21582](https://github.com/pandas-dev/pandas/... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.24.0.md |
e894f793-b4fc-5acb-aa42-07facd1c0036 | changelog | pandas | pandas_whatsnew | 0.24.0 | 120 | (i.e. `x in cat`-style checks are much faster). `CategoricalIndex.contains()`
is likewise much faster ([GH 21369](https://github.com/pandas-dev/pandas/issues/21369), [GH 21508](https://github.com/pandas-dev/pandas/issues/21508))
* Improved performance of [`HDFStore.groups()`](../reference/api/pandas.HDFStore.groups... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.24.0.md |
8c176b7c-54d5-5a26-bdb2-2c3116d856de | changelog | pandas | pandas_whatsnew | 0.24.0 | 121 | * Improved performance of `PeriodIndex.unique()` ([GH 23083](https://github.com/pandas-dev/pandas/issues/23083))
* Improved performance of [`concat()`](../reference/api/pandas.concat.html#pandas.concat "pandas.concat") for `Series` objects ([GH 23404](https://github.com/pandas-dev/pandas/issues/23404))
* Improved perfo... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.24.0.md |
3551a64c-e4c3-5e46-a3b3-741e43f2a41b | changelog | pandas | pandas_whatsnew | 0.24.0 | 122 | * Improved performance of [`DatetimeIndex.tz_localize()`](../reference/api/pandas.DatetimeIndex.tz_localize.html#pandas.DatetimeIndex.tz_localize "pandas.DatetimeIndex.tz_localize") and various `DatetimeIndex` attributes with dateutil UTC timezone ([GH 23772](https://github.com/pandas-dev/pandas/issues/23772))
* Fixed ... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.24.0.md |
25027f49-70d9-5dc0-93fb-d937f0ea6ffd | changelog | pandas | pandas_whatsnew | 0.24.0 | 123 | * Improved performance of iterating over a [`Series`](../reference/api/pandas.Series.html#pandas.Series "pandas.Series"). Using [`DataFrame.itertuples()`](../reference/api/pandas.DataFrame.itertuples.html#pandas.DataFrame.itertuples "pandas.DataFrame.itertuples") now creates iterators
without internally allocating li... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.24.0.md |
f3fd9649-1e55-5e95-9ecb-38e6b71c1eda | changelog | pandas | pandas_whatsnew | 0.24.0 | 124 | ## Bug fixes[#](#bug-fixes "Link to this heading")
### Categorical[#](#categorical "Link to this heading")
* Bug in [`Categorical.from_codes()`](../reference/api/pandas.Categorical.from_codes.html#pandas.Categorical.from_codes "pandas.Categorical.from_codes") where `NaN` values in `codes` were silently converted to `... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.24.0.md |
ce1b1aa8-da84-5409-a21b-d166fa2ac457 | changelog | pandas | pandas_whatsnew | 0.24.0 | 125 | * Constructing a [`CategoricalIndex`](../reference/api/pandas.CategoricalIndex.html#pandas.CategoricalIndex "pandas.CategoricalIndex") with empty values and boolean categories was raising a `ValueError` after a change to dtype coercion ([GH 22702](https://github.com/pandas-dev/pandas/issues/22702)).
* Bug in `Categoric... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.24.0.md |
f2df3381-4049-5d65-9506-73897344fbbc | changelog | pandas | pandas_whatsnew | 0.24.0 | 126 | * Bug when resampling [`DataFrame.resample()`](../reference/api/pandas.DataFrame.resample.html#pandas.DataFrame.resample "pandas.DataFrame.resample") and aggregating on categorical data, the categorical dtype was getting lost. ([GH 23227](https://github.com/pandas-dev/pandas/issues/23227))
* Bug in many methods of the ... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.24.0.md |
33151041-4322-519d-bb7c-093eb232c551 | changelog | pandas | pandas_whatsnew | 0.24.0 | 127 | * Bug in [`Categorical`](../reference/api/pandas.Categorical.html#pandas.Categorical "pandas.Categorical") comparison methods incorrectly raising `ValueError` when operating against a [`DataFrame`](../reference/api/pandas.DataFrame.html#pandas.DataFrame "pandas.DataFrame") ([GH 24630](https://github.com/pandas-dev/pand... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.24.0.md |
2ef51217-3821-544d-9a6a-8be4f24c1d06 | changelog | pandas | pandas_whatsnew | 0.24.0 | 128 | * Fixed bug where [`Timestamp.resolution()`](../reference/api/pandas.Timestamp.resolution.html#pandas.Timestamp.resolution "pandas.Timestamp.resolution") incorrectly returned 1-microsecond `timedelta` instead of 1-nanosecond [`Timedelta`](../reference/api/pandas.Timedelta.html#pandas.Timedelta "pandas.Timedelta") ([GH ... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.24.0.md |
7cd9ee44-9d5e-530c-bd56-d26064c387c0 | changelog | pandas | pandas_whatsnew | 0.24.0 | 129 | * Bug in [`DatetimeIndex`](../reference/api/pandas.DatetimeIndex.html#pandas.DatetimeIndex "pandas.DatetimeIndex") comparisons when comparing against `timedelta64[ns]` dtyped arrays; in some cases `TypeError` was incorrectly raised, in others it incorrectly failed to raise ([GH 22074](https://github.com/pandas-dev/pand... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.24.0.md |
861fa7fc-3b91-52cb-94d2-8e4f1992bb73 | changelog | pandas | pandas_whatsnew | 0.24.0 | 130 | * Bug in [`DataFrame`](../reference/api/pandas.DataFrame.html#pandas.DataFrame "pandas.DataFrame") with `datetime64[ns]` dtype addition and subtraction with `DateOffset` objects returning an `object` dtype instead of `datetime64[ns]` dtype ([GH 21610](https://github.com/pandas-dev/pandas/issues/21610), [GH 22163](https... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.24.0.md |
bc10d98f-6d21-54a1-a6a5-46b67e6e831a | changelog | pandas | pandas_whatsnew | 0.24.0 | 131 | * Bug in [`DataFrame`](../reference/api/pandas.DataFrame.html#pandas.DataFrame "pandas.DataFrame") with `datetime64[ns]` dtype subtracting `np.datetime64` object with non-nanosecond unit failing to convert to nanoseconds ([GH 18874](https://github.com/pandas-dev/pandas/issues/18874), [GH 22163](https://github.com/panda... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.24.0.md |
5a695c97-2aee-5b2e-b20c-1345b01dd1a7 | changelog | pandas | pandas_whatsnew | 0.24.0 | 132 | * Bug in [`DataFrame.values`](../reference/api/pandas.DataFrame.values.html#pandas.DataFrame.values "pandas.DataFrame.values") returning a [`DatetimeIndex`](../reference/api/pandas.DatetimeIndex.html#pandas.DatetimeIndex "pandas.DatetimeIndex") for a single-column `DataFrame` with tz-aware datetime values. Now a 2-D [`... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.24.0.md |
af26a77e-e179-50ce-90a9-19f9a2a0e5a9 | changelog | pandas | pandas_whatsnew | 0.24.0 | 133 | * Bug in [`DatetimeIndex`](../reference/api/pandas.DatetimeIndex.html#pandas.DatetimeIndex "pandas.DatetimeIndex") subtraction that incorrectly failed to raise `OverflowError` ([GH 22492](https://github.com/pandas-dev/pandas/issues/22492), [GH 22508](https://github.com/pandas-dev/pandas/issues/22508))
* Bug in [`Dateti... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.24.0.md |
62989fc4-dffd-51d0-a7f3-0d13014641dc | changelog | pandas | pandas_whatsnew | 0.24.0 | 134 | * Bug in rounding methods of [`DatetimeIndex`](../reference/api/pandas.DatetimeIndex.html#pandas.DatetimeIndex "pandas.DatetimeIndex") ([`round()`](../reference/api/pandas.DatetimeIndex.round.html#pandas.DatetimeIndex.round "pandas.DatetimeIndex.round"), [`ceil()`](../reference/api/pandas.DatetimeIndex.ceil.html#pandas... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.24.0.md |
68e9bce6-3f38-5a67-ab99-f3b5d0eaf70d | changelog | pandas | pandas_whatsnew | 0.24.0 | 135 | * Bug in [`to_datetime()`](../reference/api/pandas.to_datetime.html#pandas.to_datetime "pandas.to_datetime") with an [`Index`](../reference/api/pandas.Index.html#pandas.Index "pandas.Index") argument that would drop the `name` from the result ([GH 21697](https://github.com/pandas-dev/pandas/issues/21697))
* Bug in [`Pe... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.24.0.md |
3070ca91-2d27-57b7-9686-ebb02fad1cdf | changelog | pandas | pandas_whatsnew | 0.24.0 | 136 | * Bug in [`Series.min()`](../reference/api/pandas.Series.min.html#pandas.Series.min "pandas.Series.min") which would return `NaN` instead of `NaT` when called on a series of `NaT` ([GH 23282](https://github.com/pandas-dev/pandas/issues/23282))
* Bug in [`Series.combine_first()`](../reference/api/pandas.Series.combine_f... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.24.0.md |
ab158621-ad28-5547-a285-3f0cfca05a4e | changelog | pandas | pandas_whatsnew | 0.24.0 | 137 | * Bug in [`date_range()`](../reference/api/pandas.date_range.html#pandas.date_range "pandas.date_range") with frequency of `Day` or higher where dates sufficiently far in the future could wrap around to the past instead of raising `OutOfBoundsDatetime` ([GH 14187](https://github.com/pandas-dev/pandas/issues/14187))
* B... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.24.0.md |
176e1cc7-69dd-52ba-87e5-5bd80c34fabf | changelog | pandas | pandas_whatsnew | 0.24.0 | 138 | * Bug in [`Series`](../reference/api/pandas.Series.html#pandas.Series "pandas.Series") that interpreted string indices as lists of characters when setting datetimelike values ([GH 23451](https://github.com/pandas-dev/pandas/issues/23451))
* Bug in [`DataFrame`](../reference/api/pandas.DataFrame.html#pandas.DataFrame "p... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.24.0.md |
98e7b301-d4eb-50da-9077-380d280a8d7c | changelog | pandas | pandas_whatsnew | 0.24.0 | 139 | * Bug in [`DatetimeIndex`](../reference/api/pandas.DatetimeIndex.html#pandas.DatetimeIndex "pandas.DatetimeIndex") where calling `np.array(dtindex, dtype=object)` would incorrectly return an array of `long` objects ([GH 23524](https://github.com/pandas-dev/pandas/issues/23524))
* Bug in [`Index`](../reference/api/panda... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.24.0.md |
266b278d-2750-5a6d-8ad1-7037f8c8cca7 | changelog | pandas | pandas_whatsnew | 0.24.0 | 140 | * Bug in [`Index`](../reference/api/pandas.Index.html#pandas.Index "pandas.Index") where calling `np.array(dtindex, dtype=object)` on a timezone-naive [`DatetimeIndex`](../reference/api/pandas.DatetimeIndex.html#pandas.DatetimeIndex "pandas.DatetimeIndex") would return an array of `datetime` objects instead of [`Timest... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.24.0.md |
8c780efa-68cf-5241-ba9f-8c1b2be1524f | changelog | pandas | pandas_whatsnew | 0.24.0 | 141 | * Bug in [`date_range()`](../reference/api/pandas.date_range.html#pandas.date_range "pandas.date_range") where using dates with millisecond resolution or higher could return incorrect values or the wrong number of values in the index ([GH 24110](https://github.com/pandas-dev/pandas/issues/24110))
* Bug in [`DatetimeInd... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.24.0.md |
d2ebe416-2520-58c2-9709-0b58b991acc5 | changelog | pandas | pandas_whatsnew | 0.24.0 | 142 | * Bug in [`DatetimeIndex`](../reference/api/pandas.DatetimeIndex.html#pandas.DatetimeIndex "pandas.DatetimeIndex") and [`TimedeltaIndex`](../reference/api/pandas.TimedeltaIndex.html#pandas.TimedeltaIndex "pandas.TimedeltaIndex") where indexing with `Ellipsis` would incorrectly lose the index’s `freq` attribute ([GH 212... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.24.0.md |
edb32209-69c8-5917-abf0-abb0895b9096 | changelog | pandas | pandas_whatsnew | 0.24.0 | 143 | * Bug in [`Series.dt`](../reference/api/pandas.Series.dt.html#pandas.Series.dt "pandas.Series.dt") where the cache would not update properly after an in-place operation ([GH 24408](https://github.com/pandas-dev/pandas/issues/24408))
* Bug in [`PeriodIndex`](../reference/api/pandas.PeriodIndex.html#pandas.PeriodIndex "p... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.24.0.md |
04546f13-e408-5c9d-b1a0-907630875865 | changelog | pandas | pandas_whatsnew | 0.24.0 | 144 | * Bug in [`to_datetime()`](../reference/api/pandas.to_datetime.html#pandas.to_datetime "pandas.to_datetime") where arrays of `datetime` objects containing both timezone-aware and timezone-naive `datetimes` would fail to raise `ValueError` ([GH 24569](https://github.com/pandas-dev/pandas/issues/24569))
* Bug in [`to_dat... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.24.0.md |
fea4fc50-c499-50f9-83bb-fd6cdb84e3c9 | changelog | pandas | pandas_whatsnew | 0.24.0 | 145 | * Bug in adding a [`Index`](../reference/api/pandas.Index.html#pandas.Index "pandas.Index") with object dtype to a [`Series`](../reference/api/pandas.Series.html#pandas.Series "pandas.Series") with `timedelta64[ns]` dtype incorrectly raising ([GH 22390](https://github.com/pandas-dev/pandas/issues/22390))
* Bug in multi... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.24.0.md |
ffa8a7f4-0169-5a7d-a289-9299557be48e | changelog | pandas | pandas_whatsnew | 0.24.0 | 146 | * Bug in [`TimedeltaIndex`](../reference/api/pandas.TimedeltaIndex.html#pandas.TimedeltaIndex "pandas.TimedeltaIndex") incorrectly allowing indexing with `Timestamp` object ([GH 20464](https://github.com/pandas-dev/pandas/issues/20464))
* Fixed bug where subtracting [`Timedelta`](../reference/api/pandas.Timedelta.html#... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.24.0.md |
5bf4517f-2483-5887-befb-09e983e92213 | changelog | pandas | pandas_whatsnew | 0.24.0 | 147 | * Bug in [`TimedeltaIndex`](../reference/api/pandas.TimedeltaIndex.html#pandas.TimedeltaIndex "pandas.TimedeltaIndex") where adding a timezone-aware datetime scalar incorrectly returned a timezone-naive [`DatetimeIndex`](../reference/api/pandas.DatetimeIndex.html#pandas.DatetimeIndex "pandas.DatetimeIndex") ([GH 23215]... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.24.0.md |
c0c256b6-e878-5192-9955-7a9e8f576579 | changelog | pandas | pandas_whatsnew | 0.24.0 | 148 | * Bug in [`Timedelta`](../reference/api/pandas.Timedelta.html#pandas.Timedelta "pandas.Timedelta") and [`to_timedelta()`](../reference/api/pandas.to_timedelta.html#pandas.to_timedelta "pandas.to_timedelta") have inconsistencies in supported unit string ([GH 21762](https://github.com/pandas-dev/pandas/issues/21762))
* B... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.24.0.md |
14a85a10-ff6b-5bc6-a3b7-7e09302d30d4 | changelog | pandas | pandas_whatsnew | 0.24.0 | 149 | * Bug in [`TimedeltaIndex`](../reference/api/pandas.TimedeltaIndex.html#pandas.TimedeltaIndex "pandas.TimedeltaIndex") comparison operations where comparing against non-`Timedelta`-like objects would raise `TypeError` instead of returning all-`False` for `__eq__` and all-`True` for `__ne__` ([GH 24056](https://github.c... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.24.0.md |
2bc767ef-7fd2-524f-b8ff-a970400acf44 | changelog | pandas | pandas_whatsnew | 0.24.0 | 150 | * Bug in [`Timestamp`](../reference/api/pandas.Timestamp.html#pandas.Timestamp "pandas.Timestamp") constructor where passing an invalid timezone offset designator (`Z`) would not raise a `ValueError` ([GH 8910](https://github.com/pandas-dev/pandas/issues/8910))
* Bug in [`Timestamp.replace()`](../reference/api/pandas.T... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.24.0.md |
6681b4a8-3058-52e8-8abb-5387be490f24 | changelog | pandas | pandas_whatsnew | 0.24.0 | 151 | * Bug in [`Timestamp`](../reference/api/pandas.Timestamp.html#pandas.Timestamp "pandas.Timestamp") when passing different string date formats with a timezone offset would produce different timezone offsets ([GH 12064](https://github.com/pandas-dev/pandas/issues/12064))
* Bug when comparing a tz-naive [`Timestamp`](../r... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.24.0.md |
804754fd-20ad-56f3-91bd-2983aa5d107c | changelog | pandas | pandas_whatsnew | 0.24.0 | 152 | * Bug in [`Series.truncate()`](../reference/api/pandas.Series.truncate.html#pandas.Series.truncate "pandas.Series.truncate") with a tz-aware [`DatetimeIndex`](../reference/api/pandas.DatetimeIndex.html#pandas.DatetimeIndex "pandas.DatetimeIndex") which would cause a core dump ([GH 9243](https://github.com/pandas-dev/pa... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.24.0.md |
1642763b-88ea-5bc9-af33-34ad73936643 | changelog | pandas | pandas_whatsnew | 0.24.0 | 153 | * Bug in [`DatetimeIndex`](../reference/api/pandas.DatetimeIndex.html#pandas.DatetimeIndex "pandas.DatetimeIndex") where constructing with an integer and tz would not localize correctly ([GH 12619](https://github.com/pandas-dev/pandas/issues/12619))
* Fixed bug where [`DataFrame.describe()`](../reference/api/pandas.Dat... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.24.0.md |
7a52d918-f83a-59df-816b-9953ac7fda89 | changelog | pandas | pandas_whatsnew | 0.24.0 | 154 | * Bug in `DataFrame` assignment with a timezone-aware scalar ([GH 19843](https://github.com/pandas-dev/pandas/issues/19843))
* Bug in [`DataFrame.asof()`](../reference/api/pandas.DataFrame.asof.html#pandas.DataFrame.asof "pandas.DataFrame.asof") that raised a `TypeError` when attempting to compare tz-naive and tz-aware... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.24.0.md |
54bd7cef-2c5d-536d-bcc7-8aae402838d7 | changelog | pandas | pandas_whatsnew | 0.24.0 | 155 | * Bug when setting a new value with [`DataFrame.loc()`](../reference/api/pandas.DataFrame.loc.html#pandas.DataFrame.loc "pandas.DataFrame.loc") with a [`DatetimeIndex`](../reference/api/pandas.DatetimeIndex.html#pandas.DatetimeIndex "pandas.DatetimeIndex") with a DST transition ([GH 18308](https://github.com/pandas-dev... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.24.0.md |
50cf6f4d-1c10-5511-bc91-734a7120fe0f | changelog | pandas | pandas_whatsnew | 0.24.0 | 156 | * Bug in [`DataFrame.resample()`](../reference/api/pandas.DataFrame.resample.html#pandas.DataFrame.resample "pandas.DataFrame.resample") and [`Series.resample()`](../reference/api/pandas.Series.resample.html#pandas.Series.resample "pandas.Series.resample") where an `AmbiguousTimeError` or `NonExistentTimeError` would r... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.24.0.md |
cf5d7755-1090-5cdf-84c3-bd93f145413f | changelog | pandas | pandas_whatsnew | 0.24.0 | 157 | * Bug in [`DatetimeIndex`](../reference/api/pandas.DatetimeIndex.html#pandas.DatetimeIndex "pandas.DatetimeIndex") constructor where `NaT` and `dateutil.tz.tzlocal` would raise an `OutOfBoundsDatetime` error ([GH 23807](https://github.com/pandas-dev/pandas/issues/23807))
* Bug in [`DatetimeIndex.tz_localize()`](../refe... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.24.0.md |
4d5a74b2-a234-5dbc-86d6-645a63e4f46c | changelog | pandas | pandas_whatsnew | 0.24.0 | 158 | * Bug in [`Timestamp`](../reference/api/pandas.Timestamp.html#pandas.Timestamp "pandas.Timestamp") constructor where a `dateutil.tz.tzutc` timezone passed with a `datetime.datetime` argument would be converted to a `pytz.UTC` timezone ([GH 23807](https://github.com/pandas-dev/pandas/issues/23807))
* Bug in [`to_datetim... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.24.0.md |
e538b2dd-ee28-555d-a833-a0d827a5491f | changelog | pandas | pandas_whatsnew | 0.24.0 | 159 | * Bug in [`DataFrame.any()`](../reference/api/pandas.DataFrame.any.html#pandas.DataFrame.any "pandas.DataFrame.any") returns wrong value when `axis=1` and the data is of datetimelike type ([GH 23070](https://github.com/pandas-dev/pandas/issues/23070))
* Bug in [`DatetimeIndex.to_period()`](../reference/api/pandas.Datet... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.24.0.md |
6ff88cd6-5f18-52d3-8262-96c83c80d74d | changelog | pandas | pandas_whatsnew | 0.24.0 | 160 | * Bug in [`DataFrame.tz_localize()`](../reference/api/pandas.DataFrame.tz_localize.html#pandas.DataFrame.tz_localize "pandas.DataFrame.tz_localize"), [`DataFrame.tz_convert()`](../reference/api/pandas.DataFrame.tz_convert.html#pandas.DataFrame.tz_convert "pandas.DataFrame.tz_convert"), [`Series.tz_localize()`](../refer... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.24.0.md |
bee0e537-0c64-5d7f-8c23-adcb099d4d71 | changelog | pandas | pandas_whatsnew | 0.24.0 | 161 | * Bug in [`DataFrame.max()`](../reference/api/pandas.DataFrame.max.html#pandas.DataFrame.max "pandas.DataFrame.max") and [`DataFrame.min()`](../reference/api/pandas.DataFrame.min.html#pandas.DataFrame.min "pandas.DataFrame.min") with `axis=1` where a [`Series`](../reference/api/pandas.Series.html#pandas.Series "pandas.... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.24.0.md |
b17a1595-0393-5982-b2bc-f88a03b6de5f | changelog | pandas | pandas_whatsnew | 0.24.0 | 162 | * Bug in adding `DateOffset` with [`DataFrame`](../reference/api/pandas.DataFrame.html#pandas.DataFrame "pandas.DataFrame") or [`PeriodIndex`](../reference/api/pandas.PeriodIndex.html#pandas.PeriodIndex "pandas.PeriodIndex") incorrectly raising `TypeError` ([GH 23215](https://github.com/pandas-dev/pandas/issues/23215))... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.24.0.md |
ecd4b641-f555-5904-8635-6a51f060790a | changelog | pandas | pandas_whatsnew | 0.24.0 | 163 | * Bug in [`factorize()`](../reference/api/pandas.factorize.html#pandas.factorize "pandas.factorize") fails with read-only array ([GH 12813](https://github.com/pandas-dev/pandas/issues/12813))
* Fixed bug in [`unique()`](../reference/api/pandas.unique.html#pandas.unique "pandas.unique") handled signed zeros inconsistent... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.24.0.md |
15acfaf9-03d7-54e1-a410-35cbf936c6ba | changelog | pandas | pandas_whatsnew | 0.24.0 | 164 | a `TypeError` was wrongly raised. For all three methods such calculation are now done correctly. ([GH 16679](https://github.com/pandas-dev/pandas/issues/16679)).
* Bug in [`Series`](../reference/api/pandas.Series.html#pandas.Series "pandas.Series") comparison against datetime-like scalars and arrays ([GH 22074](https... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.24.0.md |
f47e53e1-62cd-573c-a549-aa24e966338d | changelog | pandas | pandas_whatsnew | 0.24.0 | 165 | * Bug in [`DataFrame.apply()`](../reference/api/pandas.DataFrame.apply.html#pandas.DataFrame.apply "pandas.DataFrame.apply") where, when supplied with a string argument and additional positional or keyword arguments (e.g. `df.apply('sum', min_count=1)`), a `TypeError` was wrongly raised ([GH 22376](https://github.com/p... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.24.0.md |
955c77c2-6a73-5e60-813a-cafc420b9ab3 | changelog | pandas | pandas_whatsnew | 0.24.0 | 166 | * Bug in [`Series.rpow()`](../reference/api/pandas.Series.rpow.html#pandas.Series.rpow "pandas.Series.rpow") with object dtype `NaN` for `1 ** NA` instead of `1` ([GH 22922](https://github.com/pandas-dev/pandas/issues/22922)).
* [`Series.agg()`](../reference/api/pandas.Series.agg.html#pandas.Series.agg "pandas.Series.a... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.24.0.md |
2a1362dc-0b99-59f4-9f73-ac3550eda99c | changelog | pandas | pandas_whatsnew | 0.24.0 | 167 | * Calls such as [`DataFrame.round()`](../reference/api/pandas.DataFrame.round.html#pandas.DataFrame.round "pandas.DataFrame.round") with a non-unique [`CategoricalIndex()`](../reference/api/pandas.CategoricalIndex.html#pandas.CategoricalIndex "pandas.CategoricalIndex") now return expected data. Previously, data would b... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.24.0.md |
0b2637f3-9a3e-5870-836b-5377b8ba9f93 | changelog | pandas | pandas_whatsnew | 0.24.0 | 168 | * Checking PEP 3141 numbers in [`is_scalar()`](../reference/api/pandas.api.types.is_scalar.html#pandas.api.types.is_scalar "pandas.api.types.is_scalar") function returns `True` ([GH 22903](https://github.com/pandas-dev/pandas/issues/22903))
* Reduction methods like [`Series.sum()`](../reference/api/pandas.Series.sum.ht... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.24.0.md |
d3b5d5fe-a700-5abe-b974-e5a4579ba9d3 | changelog | pandas | pandas_whatsnew | 0.24.0 | 169 | * Bug in [`DataFrame.clip()`](../reference/api/pandas.DataFrame.clip.html#pandas.DataFrame.clip "pandas.DataFrame.clip") in which column types are not preserved and casted to float ([GH 24162](https://github.com/pandas-dev/pandas/issues/24162))
* Bug in [`DataFrame.clip()`](../reference/api/pandas.DataFrame.clip.html#p... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.24.0.md |
1ad63547-4abb-592a-88a8-670da91ba085 | changelog | pandas | pandas_whatsnew | 0.24.0 | 170 | ### Strings[#](#strings "Link to this heading")
* Bug in `Index.str.partition()` was not nan-safe ([GH 23558](https://github.com/pandas-dev/pandas/issues/23558)).
* Bug in `Index.str.split()` was not nan-safe ([GH 23677](https://github.com/pandas-dev/pandas/issues/23677)).
* Bug [`Series.str.contains()`](../reference/... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.24.0.md |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.