This made it difficult to determine where the warning was being generated from.
Now pandas will inspect the call stack, reporting the first line outside of the
pandas library that gave rise to the warning. The output of the above script is
now:
Until now, passing a custom ExtensionArray to pd.Index would cast
the array to object dtype. Now Index can directly hold arbitrary
ExtensionArrays (GH 43930).
Previous behavior:
In [1]: arr=pd.array([1,2,pd.NA])In [2]: idx=pd.Index(arr)
In the old behavior, idx would be object-dtype:
Previous behavior:
In [1]: idxOut[1]: Index([1, 2, <NA>], dtype='object')
With the new behavior, we keep the original dtype:
New behavior:
In [3]: idxOut[3]: Index([1, 2, <NA>], dtype='Int64')
One exception to this is SparseArray, which will continue to cast to numpy
dtype until pandas 2.0. At that point it will retain its dtype like other
ExtensionArrays.
Styler
Styler has been further developed in 1.4.0. The following general enhancements have been made:
Styling and formatting of indexes has been added, with Styler.apply_index(), Styler.applymap_index() and Styler.format_index(). These mirror the signature of the methods already used to style and format data values, and work with both HTML, LaTeX and Excel format (GH 41893, GH 43101, GH 41993, GH 41995)
The new method Styler.hide() deprecates Styler.hide_index() and Styler.hide_columns() (GH 43758)
The keyword arguments level and names have been added to Styler.hide() (and implicitly to the deprecated methods Styler.hide_index() and Styler.hide_columns()) for additional control of visibility of MultiIndexes and of Index names (GH 25475, GH 43404, GH 43346)
Global options under the category pd.options.styler have been extended to configure default Styler properties which address formatting, encoding, and HTML and LaTeX rendering. Note that formerly Styler relied on display.html.use_mathjax, which has now been replaced by styler.html.mathjax (GH 41395)
Validation of certain keyword arguments, e.g. caption (GH 43368)
Various bug fixes as recorded below
Additionally there are specific enhancements to the HTML specific rendering:
Styler.bar() introduces additional arguments to control alignment and display (GH 26070, GH 36419), and it also validates the input arguments width and height (GH 42511)
Styler.to_latex() introduces keyword argument environment, which also allows a specific “longtable” entry through a separate jinja2 template (GH 41866)
Naive sparsification is now possible for LaTeX without the necessity of including the multirow package (GH 43369)
cline support has been added for MultiIndex row sparsification through a keyword argument (GH 45138)
Multi-threaded CSV reading with a new CSV Engine based on pyarrow
pandas.read_csv() now accepts engine="pyarrow" (requires at least
pyarrow 1.0.1) as an argument, allowing for faster csv parsing on multicore
machines with pyarrow installed. See the I/O docs for
more info. (GH 23697, GH 43706)
Rank function for rolling and expanding windows
Added rank function to Rolling and Expanding. The new
function supports the method, ascending, and pct flags of
DataFrame.rank(). The method argument supports min, max, and
average ranking methods.
Example:
In [11]: df.groupby("A").nth[1,-1]Out[11]: A B1 g g13 g g35 h h1In [12]: df.groupby("A").nth[1:-1]Out[12]:
DataFrame.from_dict and DataFrame.to_dict have new 'tight' option
A new 'tight' dictionary format that preserves MultiIndex entries
and names is now available with the DataFrame.from_dict() and
DataFrame.to_dict() methods and can be used with the standard json
library to produce a tight representation of DataFrame objects
(GH 4889).
In [14]: df=pd.DataFrame.from_records( ....: [[1,3],[2,4]], ....: index=pd.MultiIndex.from_tuples([("a","b"),("a","c"
Other enhancements
concat() will preserve the attrs when it is the same for all objects and discard the attrs when they are different (GH 41828)
DataFrameGroupBy operations with as_index=False now correctly retain ExtensionDtype dtypes for columns being grouped on (GH 41373)
DataFrame.to_stata() and StataWriter() now accept the keyword only argument value_labels to save labels for non-categorical columns (GH 38454)
Methods that relied on hashmap based algos such as DataFrameGroupBy.value_counts(), DataFrameGroupBy.count() and factorize() ignored imaginary component for complex numbers (GH 17927)
Implemented IntervalArray.min() and IntervalArray.max(), as a result of which min and max now work for IntervalIndex, Series and DataFrame with IntervalDtype (GH 44746)
UInt64Index.map() now retains dtype where possible (GH 44609)
These are bug fixes that might have notable behavior changes.
Inconsistent date string parsing
The dayfirst option of to_datetime() isn’t strict, and this can lead
to surprising behavior:
In [17]: pd.to_datetime(["31-12-2021"],dayfirst=False)Out[17]: DatetimeIndex(['2021-12-31'], dtype='datetime64[ns]', freq=None)
Now, a warning will be raised if a date string cannot be parsed accordance to
the given dayfirst value when the value is a delimited date string (e.g.
31-12-2012).
Ignoring dtypes in concat with empty or all-NA columns
When using concat() to concatenate two or more DataFrame objects,
if one of the DataFrames was empty or had all-NA values, its dtype was
sometimes ignored when finding the concatenated dtype. These are now
consistently not ignored (GH 43507).
In [3]: df1=
Null-values are no longer coerced to NaN-value in value_counts and mode
Series.value_counts() and Series.mode() no longer coerce None,
NaT and other null-values to a NaN-value for np.object_-dtype. This
behavior is now consistent with unique, isin and others
(GH 42688).
mangle_dupe_cols in read_csv no longer renames unique columns conflicting with target names
read_csv() no longer renames unique column labels which conflict with the target
names of duplicated columns. Already existing columns are skipped, i.e. the next
available index is used for the target column name (GH 14704).
In [21]: importioIn [22]: data="a,a,a.1\n1,2,3"In [23]: res=pd.read_csv(io
unstack and pivot_table no longer raises ValueError for result that would exceed int32 limit
DataFrameGroupBy.apply() and SeriesGroupBy.apply() are designed to be flexible, allowing users to perform
aggregations, transformations, filters, and use it with user-defined functions
that might not fall into any of these categories. As part of this, apply will
attempt to detect when an operation is a transform, and in such a case, the
result will have the same index as the input. In order to determine if the
operation is a transform, pandas compares the input’s index to the result’s and
determines if it has been mutated. Previously in pandas 1.3, different code
paths used different definitions of “mutated”: some would use Python’s is
whereas others would test only up to equality.
This inconsistency has been removed, pandas now tests up to equality.
In [25]: def
Backwards incompatible API changes
Increased minimum version for Python
pandas 1.4.0 supports Python 3.8 and higher.
Increased minimum versions for dependencies
Some minimum supported versions of dependencies were updated.
If installed, we now require:
Package
Minimum Version
Required
Changed
numpy
1.18.5
X
X
pytz
2020.1
X
X
python-dateutil
2.8.1
X
X
bottleneck
1.3.1
X
numexpr
2.7.1
X
pytest (dev)
6.0
mypy (dev)
0.930
X
For optional libraries the general
recommendation is to use the latest version. The following table lists the
lowest version per library that is currently being tested throughout the
development of pandas. Optional libraries below the lowest tested version may
still work, but are not considered supported.
Index.get_indexer_for() no longer accepts keyword arguments (other than target); in the past these would be silently ignored if the index was not unique (GH 42310)
Currently, in order to maintain backward compatibility, calls to Index
will continue to return Int64Index, UInt64Index and
Float64Index when given numeric data, but in the future, an
Index will be returned.
Deprecated method argument in Index.get_loc(), use index.get_indexer([label],method=...) instead (GH 42269)
Deprecated treating integer keys in Series.__setitem__() as positional when the index is a Float64Index not containing the key, a with no entries containing the key, or a with leading level not containing the key ()
Performance improvement in SparseArray.__getitem__() (GH 23122)
Performance improvement in constructing a DataFrame from array-like objects like a Pytorch tensor (GH 44616)
Bug fixes
Categorical
Bug in setting dtype-incompatible values into a Categorical (or Series or DataFrame backed by Categorical) raising ValueError instead of TypeError (GH 41919)
Bug in Categorical.searchsorted() when passing a dtype-incompatible value raising KeyError instead of TypeError (GH 41919)
Bug in Categorical.astype() casting datetimes and Timestamp to int for dtype object (GH 44930)
Bug in Series.where() with CategoricalDtype when passing a dtype-incompatible value raising ValueError instead of TypeError (GH 41919)
Bug in Categorical.fillna() when passing a dtype-incompatible value raising ValueError instead of TypeError (GH 41919)
Bug in Categorical.fillna() with a tuple-like category raising ValueError instead of TypeError when filling with a non-category tuple (GH 41919)
would silently swap and formats if the given option could not be respected - now, a warning is raised in the case of delimited date strings (e.g. ) ()
Timedelta
Bug in division of all-NaTTimeDeltaIndex, Series or DataFrame column with object-dtype array like of numbers failing to infer the result as timedelta64-dtype (GH 39750)
Bug in floor division of timedelta64[ns] data with a scalar returning garbage values (GH 44466)
Bug in now properly taking into account any nanoseconds contribution of any kwarg (, )
Time Zones
Bug in to_datetime() with infer_datetime_format=True failing to parse zero UTC offset (Z) correctly (GH 41047)
Bug in treating missing values and extreme values as equal (for example and ), causing incorrect results when or used ()
Conversion
Bug in UInt64Index constructor when passing a list containing both positive integers small enough to cast to int64 and integers too large to hold in int64 (GH 42201)
Bug in Series constructor returning 0 for missing values with dtype int64 and False for dtype bool (GH 43017, GH 43018)
Bug in constructing a from a containing objects behaving differently than an equivalent ()
Strings
Bug in checking for string[pyarrow] dtype incorrectly raising an ImportError when pyarrow is not installed (GH 44276)
Interval
Bug in Series.where() with IntervalDtype incorrectly raising when the where call should not replace anything (GH 44181)
When given non-numeric data, DataFrame.boxplot() now raises a ValueError rather than a cryptic KeyError or ZeroDivisionError, in line with other plotting functions like DataFrame.hist() (GH 43480)
Groupby/resample/rolling
Bug in SeriesGroupBy.apply() where passing an unrecognized string argument failed to raise TypeError when the underlying Series is empty (GH 42021)
Bug in Series.rolling.apply(), DataFrame.rolling.apply(), Series.expanding.apply() and DataFrame.expanding.apply() with engine="numba" where *args were being cached with the user passed function ()
NumPy ufuncs np.abs, np.positive, np.negative now correctly preserve dtype when called on ExtensionArrays that implement __abs__,__pos__,__neg__, respectively. In particular this is fixed for TimedeltaArray (GH 43899, GH 23316)
Styler
Bug in Styler where the uuid at initialization maintained a floating underscore (GH 43037)
Bug in Styler.to_html() where the Styler object was updated if the to_html method was called with some args (GH 43034)
Bug in Styler.copy() where was not previously copied ()
Bug in CustomBusinessMonthBegin.__add__() (CustomBusinessMonthEnd.__add__()) not applying the extra offset parameter when beginning (end) of the target month is already a business day (GH 41356)
Bug in with another with matching (even) and starts differing by strictly less than ()
Contributors
A total of 275 people contributed patches to this release. People with a
“+” by their names contributed a patch for the first time.
Previously, the float-dtype in df2 would be ignored so the result dtype
would be datetime64[ns]. As a result, the np.nan would be cast to
NaT.
Previous behavior:
In [6]: resOut[6]: bar0 2013-01-011 NaT
Now the float-dtype is respected. Since the common dtype for these DataFrames is
object, the np.nan is retained.
New behavior:
In [6]: resOut[6]: bar0 2013-01-01 00:00:001 NaN
In [18]: s=pd.Series([True,None,pd.NaT,None,pd.NaT,None])In [19]: res=s.value_counts(dropna=False)
Previously, all null-values were replaced by a NaN-value.
Previous behavior:
In [3]: resOut[3]:NaN 5True 1dtype: int64
Now null-values are no longer mangled.
New behavior:
In [20]: resOut[20]: None 3NaT 2True 1Name: count, dtype: int64
.
StringIO
(
data
))
Previously, the second column was called a.1, while the third column was
also renamed to a.1.1.
Previous behavior:
In [3]: resOut[3]: a a.1 a.1.10 1 2 3
Now the renaming checks if a.1 already exists when changing the name of the
second column and jumps this index. The second column is instead renamed to
a.2.
New behavior:
In [24]: resOut[24]: a a.2 a.10 1 2 3
In [3]: df=DataFrame({"ind1":np.arange(2**16),"ind2":np.arange(2**16),"count":0})In [4]: df.pivot_table(index="ind1",columns="ind2",values="count",aggfunc="count")ValueError: Unstacked DataFrame is too big, causing int32 overflow
In [3]: df.groupby(['a']).apply(func)Out[3]: a b ca1 0 1 3 52 1 2 4 6In [4]: df.set_index(['a','b']).groupby(['a']).apply(func)Out[4]: ca b1 3 52 4 6
In the examples above, the first uses a code path where pandas uses is and
determines that func is not a transform whereas the second tests up to
equality and determines that func is a transform. In the first case, the
result’s index is not the same as the input’s.
New behavior:
In [5]: df.groupby(['a']).apply(func)Out[5]: a b c0 1 3 51 2 4 6In [6]: df.set_index(['a','b']).groupby(['a']).apply(func)Out[6]: ca b1 3 52 4 6
Now in both cases it is determined that func is a transform. In each case,
the result has the same index as the input.
Deprecated treating numpy.datetime64 objects as UTC times when passed to the Timestamp constructor along with a timezone. In a future version, these will be treated as wall-times. To retain the old behavior, use Timestamp(dt64).tz_localize("UTC").tz_convert(tz) (GH 24559)
Deprecated ignoring missing labels when indexing with a sequence of labels on a level of a MultiIndex (GH 42351)
Creating an empty Series without a dtype will now raise a more visible FutureWarning instead of a DeprecationWarning (GH 30017)
Deprecated the include_start and include_end arguments in DataFrame.between_time(); in a future version passing include_start or include_end will raise (GH 40245)
Deprecated the index argument to SparseArray construction (GH 23089)
Deprecated the closed argument in date_range() and bdate_range() in favor of inclusive argument; In a future version passing closed will raise (GH 40245)
Deprecated Rolling.validate(), Expanding.validate(), and ExponentialMovingWindow.validate() (GH 43665)
Deprecated silent dropping of columns that raised a TypeError, DataError, and some cases of ValueError in Series.aggregate(), DataFrame.aggregate(), Series.groupby.aggregate(), and DataFrame.groupby.aggregate() when used with a list (GH 43740)
Deprecated casting behavior when setting timezone-aware value(s) into a timezone-aware Series or DataFrame column when the timezones do not match. Previously this cast to object dtype. In a future version, the values being inserted will be converted to the series or column’s existing timezone (GH 37605)
Deprecated casting behavior when passing an item with mismatched-timezone to DatetimeIndex.insert(), DatetimeIndex.putmask(), DatetimeIndex.where()DatetimeIndex.fillna(), Series.mask(), Series.where(), Series.fillna(), Series.shift(), Series.replace(), Series.reindex() (and DataFrame column analogues). In the past this has cast to object dtype. In a future version, these will cast the passed item to the index or series’s timezone (GH 37605, GH 44940)
Deprecated the prefix keyword argument in read_csv() and read_table(), in a future version the argument will be removed (GH 43396)
Deprecated passing non boolean argument to sort in concat() (GH 41518)
Deprecated passing arguments as positional for read_fwf() other than filepath_or_buffer (GH 41485)
Deprecated passing arguments as positional for read_xml() other than path_or_buffer (GH 45133)
Deprecated passing skipna=None for DataFrame.mad() and Series.mad(), pass skipna=True instead (GH 44580)
Deprecated the behavior of to_datetime() with the string “now” with utc=False; in a future version this will match Timestamp("now"), which in turn matches Timestamp.now() returning the local time (GH 18705)
Deprecated DateOffset.apply(), use offset+other instead (GH 44522)
A deprecation warning is now shown for DataFrame.to_latex() indicating the arguments signature may change and emulate more the arguments to Styler.to_latex() in future versions (GH 44411)
Deprecated behavior of concat() between objects with bool-dtype and numeric-dtypes; in a future version these will cast to object dtype instead of coercing bools to numeric values (GH 39817)
Deprecated passing set or dict as indexer for DataFrame.loc.__setitem__(), DataFrame.loc.__getitem__(), Series.loc.__setitem__(), Series.loc.__getitem__(), DataFrame.__getitem__(), Series.__getitem__() and Series.__setitem__() (GH 42825)
Deprecated Index.__getitem__() with a bool key; use index.values[key] to get the old behavior (GH 44051)
Deprecated behavior of Series and DataFrame construction when passed float-dtype data containing NaN and an integer dtype ignoring the dtype argument; in a future version this will raise (GH 40110)
Deprecated the behaviour of Series.to_frame() and Index.to_frame() to ignore the name argument when name=None. Currently, this means to preserve the existing name, but in the future explicitly passing name=None will set None as the name of the column in the resulting DataFrame (GH 44212)
Bug in calling np.isnan, np.isfinite, or np.isinf on a timezone-aware DatetimeIndex incorrectly raising TypeError (GH 43917)
Bug in constructing a Series from datetime-like strings with mixed timezones incorrectly partially-inferring datetime values (GH 40111)
Bug in addition of a Tick object and a np.timedelta64 object incorrectly raising instead of returning Timedelta (GH 44474)
np.maximum.reduce and np.minimum.reduce now correctly return Timestamp and Timedelta objects when operating on Series, DataFrame, or Index with datetime64[ns] or timedelta64[ns] dtype (GH 43923)
Bug in adding a np.timedelta64 object to a BusinessDay or CustomBusinessDay object incorrectly raising (GH 44532)
Bug in Index.insert() for inserting np.datetime64, np.timedelta64 or tuple into Index with dtype='object' with negative loc adding None and replacing existing value (GH 44509)
Bug in Series.mode() with DatetimeTZDtype incorrectly returning timezone-naive and PeriodDtype incorrectly raising (GH 41927)
Fixed regression in reindex() raising an error when using an incompatible fill value with a datetime-like dtype (or not raising a deprecation warning for using a datetime.date as fill value) (GH 42921)
Bug in DateOffset addition with Timestamp where offset.nanoseconds would not be included in the result (GH 43968, GH 36589)
Bug in DataFrame construction from dict of Series with mismatched index dtypes sometimes raising depending on the ordering of the passed dict (GH 44091)
Bug in Timestamp hashing during some DST transitions caused a segmentation fault (GH 33931 and GH 40817)
Bug in numexpr engine still being used when the option compute.use_numexpr is set to False (GH 32556)
Bug in DataFrame arithmetic ops with a subclass whose _constructor() attribute is a callable other than the subclass itself (GH 43201)
Bug in arithmetic operations involving RangeIndex where the result would have the incorrect name (GH 43962)
Bug in arithmetic operations involving Series where the result could have the incorrect name when the operands having matching NA or matching tuple names (GH 44459)
Bug in division with IntegerDtype or BooleanDtype array and NA scalar incorrectly raising (GH 44685)
Bug in multiplying a Series with FloatingDtype with a timedelta-like scalar incorrectly raising (GH 44772)
Bug in indexing on a Series or DataFrame with a DatetimeIndex when passing a string, the return type depended on whether the index was monotonic (GH 24892)
Bug in indexing on a MultiIndex failing to drop scalar levels when the indexer is a tuple containing a datetime-like string (GH 42476)
Bug in DataFrame.query() did not handle the degree sign in a backticked column name, such as `Temp(°C)`, used in an expression to query a DataFrame (GH 42826)
Bug in DataFrame.drop() where the error message did not show missing labels with commas when raising KeyError (GH 42881)
Bug in DataFrame.query() where method calls in query strings led to errors when the numexpr package was installed (GH 22435)
Bug in indexing on a non-unique object-dtype Index with an NA scalar (e.g. np.nan) (GH 43711)
Bug in DataFrame.__setitem__() incorrectly writing into an existing column’s array rather than setting a new array when the new dtype and the old dtype match (GH 43406)
Bug in setting floating-dtype values into a Series with integer dtype failing to set inplace when those values can be losslessly converted to integers (GH 44316)
Bug in Series.__setitem__() with object dtype when setting an array with matching size and dtype=’datetime64[ns]’ or dtype=’timedelta64[ns]’ incorrectly converting the datetime/timedeltas to integers (GH 43868)
Bug in DataFrame.sort_index() where ignore_index=True was not being respected when the index was already sorted (GH 43591)
Bug in setting a scalar Interval value into a Series with IntervalDtype when the scalar’s sides are floats and the values’ sides are integers (GH 44201)
Bug when setting string-backed Categorical values that can be parsed to datetimes into a DatetimeArray or Series or DataFrame column backed by DatetimeArray failing to parse these strings (GH 44236)
Bug in Series.__setitem__() with an integer dtype other than int64 setting with a range object unnecessarily upcasting to int64 (GH 44261)
Bug in Series.__setitem__() with a boolean mask indexer setting a listlike value of length 1 incorrectly broadcasting that value (GH 44265)
Bug in DataFrame.loc.__setitem__() and DataFrame.iloc.__setitem__() with mixed dtypes sometimes failing to operate in-place (GH 44345)
Bug in DataFrame.loc.__getitem__() incorrectly raising KeyError when selecting a single column with a boolean key (GH 44322).
Bug in setting DataFrame.iloc() with a single ExtensionDtype column and setting 2D values e.g. df.iloc[:]=df.values incorrectly raising (GH 44514)
Bug in setting values with DataFrame.iloc() with a single ExtensionDtype column and a tuple of arrays as the indexer (GH 44703)
Bug in indexing on columns with loc or iloc using a slice with a negative step with ExtensionDtype columns incorrectly raising (GH 44551)
Bug in DataFrame.loc.__setitem__() changing dtype when indexer was completely False (GH 37550)
Bug in IntervalIndex.get_indexer_non_unique() returning boolean mask instead of array of integers for a non unique and non monotonic index (GH 44084)
Bug in IntervalIndex.get_indexer_non_unique() not handling targets of dtype ‘object’ with NaNs correctly (GH 44482)
Fixed regression where a single column np.matrix was no longer coerced to a 1d np.ndarray when added to a DataFrame (GH 42376)
Bug in Series.__getitem__() with a CategoricalIndex of integers treating lists of integers as positional indexers, inconsistent with the behavior with a single scalar integer (GH 15470, GH 14865)
Bug in Series.__setitem__() when setting floats or integers into integer-dtype Series failing to upcast when necessary to retain precision (GH 45121)
Bug in DataFrame.iloc.__setitem__() ignores axis argument (GH 45032)
Bug in constructing a DataFrame with a dictionary np.datetime64 as a value and dtype='timedelta64[ns]', or vice-versa, incorrectly casting instead of raising (GH 44428)
Bug in Index.fillna() incorrectly returning an unfilled Index when NA values are present and downcast argument is specified. This now raises NotImplementedError instead; do not pass downcast argument (GH 44873)
Bug in read_csv() not raising an ValueError when \n was specified as delimiter or sep which conflicts with lineterminator (GH 43528)
Bug in to_csv() converting datetimes in categorical Series to integers (GH 40754)
Bug in read_csv() converting columns to numeric after date parsing failed (GH 11019)
Bug in read_csv() not replacing NaN values with np.nan before attempting date conversion (GH 26203)
Bug in read_csv() raising AttributeError when attempting to read a .csv file and infer index column dtype from an nullable integer type (GH 44079)
Bug in to_csv() always coercing datetime columns with different formats to the same format (GH 21734)
DataFrame.to_csv() and Series.to_csv() with compression set to 'zip' no longer create a zip file containing a file ending with “.zip”. Instead, they try to infer the inner file name more smartly (GH 39465)
Bug in read_csv() where reading a mixed column of booleans and missing values to a float type results in the missing values becoming 1.0 rather than NaN (GH 42808, GH 34120)
Bug in to_xml() raising error for pd.NA with extension array dtype (GH 43903)
Bug in read_csv() when passing simultaneously a parser in date_parser and parse_dates=False, the parsing was still called (GH 44366)
Bug in read_csv() not setting name of MultiIndex columns correctly when index_col is not the first column (GH 38549)
Bug in read_csv() silently ignoring errors when failing to create a memory-mapped file (GH 44766)
Bug in read_csv() when passing a tempfile.SpooledTemporaryFile opened in binary mode (GH 44748)
Bug in read_json() raising ValueError when attempting to parse json strings containing “://” (GH 36271)
Bug in read_csv() when engine="c" and encoding_errors=None which caused a segfault (GH 45180)
Bug in read_csv() an invalid value of usecols leading to an unclosed file handle (GH 45384)
Bug in SeriesGroupBy.nlargest() and SeriesGroupBy.nsmallest() would have an inconsistent index when the input Series was sorted and n was greater than or equal to all group sizes (GH 15272, GH 16345, GH 29129)
Bug in DataFrame.append() failing to retain dtypes when appended columns do not match (GH 43392)
Bug in concat() of bool and boolean dtypes resulting in object dtype instead of boolean dtype (GH 42800)
Bug in crosstab() when inputs are categorical Series, there are categories that are not present in one or both of the Series, and margins=True. Previously the margin value for missing categories was NaN. It is now correctly reported as 0 (GH 43505)
Bug in concat() would fail when the objs argument all had the same index and the keys argument contained duplicates (GH 43595)
Bug in DataFrame.append() failing to retain index.name when appending a list of Series objects (GH 44109)
Fixed metadata propagation in Dataframe.apply() method, consequently fixing the same issue for Dataframe.transform(), Dataframe.nunique() and Dataframe.mode() (GH 28283)
Bug in concat() casting levels of MultiIndex to float if all levels only consist of missing values (GH 44900)
Bug in SparseArray comparison methods with an array-like operand of mismatched length raising AssertionError or unclear ValueError depending on the input (GH 43863)
Bug in SparseArray arithmetic methods floordiv and mod behaviors when dividing by zero not matching the non-sparse Series behavior (GH 38172)
Bug in SparseArray unary methods as well as SparseArray.isna() doesn’t recalculate indexes (GH 44955)
NumPy ufuncs np.minimum.reducenp.maximum.reduce, np.add.reduce, and np.prod.reduce now work correctly instead of raising NotImplementedError on Series with IntegerDtype or FloatDtype (GH 43923, GH 44793)
NumPy ufuncs with out keyword are now supported by arrays with IntegerDtype and FloatingDtype (GH 45122)
Avoid raising PerformanceWarning about fragmented DataFrame when using many columns with an extension dtype (GH 44098)
Bug in IntegerArray and FloatingArray construction incorrectly coercing mismatched NA values (e.g. np.timedelta64("NaT")) to numeric NA (GH 44514)
Bug in BooleanArray.__eq__() and BooleanArray.__ne__() raising TypeError on comparison with an incompatible type (like a string). This caused DataFrame.replace() to sometimes raise a TypeError if a nullable boolean column was included (GH 44499)
Bug in array() incorrectly raising when passed a ndarray with float16 dtype (GH 44715)
Bug in calling np.sqrt on BooleanArray returning a malformed FloatingArray (GH 44715)
Bug in Series.where() with ExtensionDtype when other is a NA scalar incompatible with the Series dtype (e.g. NaT with a numeric dtype) incorrectly casting to a compatible NA value (GH 44697)
Bug in Series.replace() where explicitly passing value=None is treated as if no value was passed, and None not being in the result (GH 36984, GH 19998)
Bug in Styler.apply() where functions which returned Series objects were not correctly handled in terms of aligning their index labels (GH 13657, GH 42014)
Bug in DataFrame.eval() where resolvers argument was overriding the default resolvers (GH 34966)
Series.__repr__() and DataFrame.__repr__() no longer replace all null-values in indexes with “NaN” but use their real string-representations. “NaN” is used only for float("nan") (GH 45263)