# Whats New in 0.24.2 (March 12, 2019)
Warning
The 0.24.x series of releases will be the last to support Python 2. Future feature releases will support Python 3 only. See Plan for dropping Python 2.7 (opens new window) for more.
These are the changes in pandas 0.24.2. See Release Notes (opens new window) for a full changelog including other versions of pandas.
# Fixed Regressions
- Fixed regression in DataFrame.all() (opens new window) and DataFrame.any() (opens new window) where bool_only=True was ignored (GH25101 (opens new window))
- Fixed issue in
DataFrame
construction with passing a mixed list of mixed types could segfault. (GH25075 (opens new window)) - Fixed regression in DataFrame.apply() (opens new window) causing
RecursionError
whendict
-like classes were passed as argument. (GH25196 (opens new window)) - Fixed regression in DataFrame.replace() (opens new window) where regex=True was only replacing patterns matching the start of the string (GH25259 (opens new window))
- Fixed regression in DataFrame.duplicated() (opens new window), where empty dataframe was not returning a boolean dtyped Series. (GH25184 (opens new window))
- Fixed regression in Series.min() (opens new window) and Series.max() (opens new window) where
numeric_only=True
was ignored when theSeries
containedCategorical
data (GH25299 (opens new window)) - Fixed regression in subtraction between Series (opens new window) objects with
datetime64[ns]
dtype incorrectly raisingOverflowError
when theSeries
on the right contains null values (GH25317 (opens new window)) - Fixed regression in TimedeltaIndex (opens new window) where
np.sum(index)
incorrectly returned a zero-dimensional object instead of a scalar (GH25282 (opens new window)) - Fixed regression in
IntervalDtype
construction where passing an incorrect string with ‘Interval’ as a prefix could result in aRecursionError
. (GH25338 (opens new window)) - Fixed regression in creating a period-dtype array from a read-only NumPy array of period objects. (GH25403 (opens new window))
- Fixed regression in Categorical (opens new window), where constructing it from a categorical
Series
and an explicitcategories=
that differed from that in theSeries
created an invalid object which could trigger segfaults. (GH25318 (opens new window)) - Fixed regression in to_timedelta() (opens new window) losing precision when converting floating data to
Timedelta
data (GH25077 (opens new window)). - Fixed pip installing from source into an environment without NumPy (GH25193 (opens new window))
- Fixed regression in DataFrame.replace() (opens new window) where large strings of numbers would be coerced into
int64
, causing anOverflowError
(GH25616 (opens new window)) - Fixed regression in factorize() (opens new window) when passing a custom
na_sentinel
value withsort=True
(GH25409 (opens new window)). - Fixed regression in DataFrame.to_csv() (opens new window) writing duplicate line endings with gzip compress (GH25311 (opens new window))
# Bug Fixes
I/O
- Better handling of terminal printing when the terminal dimensions are not known (GH25080 (opens new window))
- Bug in reading a HDF5 table-format
DataFrame
created in Python 2, in Python 3 (GH24925 (opens new window)) - Bug in reading a JSON with
orient='table'
generated by DataFrame.to_json() (opens new window) withindex=False
(GH25170 (opens new window)) - Bug where float indexes could have misaligned values when printing (GH25061 (opens new window))
Reshaping
- Bug in transform() (opens new window) where applying a function to a timezone aware column would return a timezone naive result (GH24198 (opens new window))
- Bug in DataFrame.join() (opens new window) when joining on a timezone aware DatetimeIndex (opens new window) (GH23931 (opens new window))
Visualization
- Bug in Series.plot() (opens new window) where a secondary y axis could not be set to log scale (GH25545 (opens new window))
Other
- Bug in Series.is_unique() (opens new window) where single occurrences of
NaN
were not considered unique (GH25180 (opens new window)) - Bug in merge() (opens new window) when merging an empty
DataFrame
with anInt64
column or a non-emptyDataFrame
with anInt64
column that is allNaN
(GH25183 (opens new window)) - Bug in
IntervalTree
where aRecursionError
occurs upon construction due to an overflow when adding endpoints, which also causes IntervalIndex (opens new window) to crash during indexing operations (GH25485 (opens new window)) - Bug in Series.size (opens new window) raising for some extension-array-backed
Series
, rather than returning the size (GH25580 (opens new window)) - Bug in resampling raising for nullable integer-dtype columns (GH25580 (opens new window))
# Contributors
A total of 25 people contributed patches to this release. People with a “+” by their names contributed a patch for the first time.
- Albert Villanova del Moral
- Arno Veenstra +
- chris-b1
- Devin Petersohn +
- EternalLearner42 +
- Flavien Lambert +
- gfyoung
- Gioia Ballin
- jbrockmendel
- Jeff Reback
- Jeremy Schendel
- Johan von Forstner +
- Joris Van den Bossche
- Josh
- Justin Zheng
- Kendall Masse
- Matthew Roeschke
- Max Bolingbroke +
- rbenes +
- Sterling Paramore +
- Tao He +
- Thomas A Caswell
- Tom Augspurger
- Vibhu Agarwal +
- William Ayd
- Zach Angell