What’s 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 Dropping Python 2.7 for more.
These are the changes in pandas 0.24.2. See Release notes for a full changelog including other versions of pandas.
Fixed regressions#
- Fixed regression in - DataFrame.all()and- DataFrame.any()where- bool_only=Truewas ignored (GH 25101)
- Fixed issue in - DataFrameconstruction with passing a mixed list of mixed types could segfault. (GH 25075)
- Fixed regression in - DataFrame.apply()causing- RecursionErrorwhen- dict-like classes were passed as argument. (GH 25196)
- Fixed regression in - DataFrame.replace()where- regex=Truewas only replacing patterns matching the start of the string (GH 25259)
- Fixed regression in - DataFrame.duplicated(), where empty dataframe was not returning a boolean dtyped Series. (GH 25184)
- Fixed regression in - Series.min()and- Series.max()where- numeric_only=Truewas ignored when the- Seriescontained- Categoricaldata (GH 25299)
- Fixed regression in subtraction between - Seriesobjects with- datetime64[ns]dtype incorrectly raising- OverflowErrorwhen the- Serieson the right contains null values (GH 25317)
- Fixed regression in - TimedeltaIndexwhere- np.sum(index)incorrectly returned a zero-dimensional object instead of a scalar (GH 25282)
- Fixed regression in - IntervalDtypeconstruction where passing an incorrect string with ‘Interval’ as a prefix could result in a- RecursionError. (GH 25338)
- Fixed regression in creating a period-dtype array from a read-only NumPy array of period objects. (GH 25403) 
- Fixed regression in - Categorical, where constructing it from a categorical- Seriesand an explicit- categories=that differed from that in the- Seriescreated an invalid object which could trigger segfaults. (GH 25318)
- Fixed regression in - to_timedelta()losing precision when converting floating data to- Timedeltadata (GH 25077).
- Fixed pip installing from source into an environment without NumPy (GH 25193) 
- Fixed regression in - DataFrame.replace()where large strings of numbers would be coerced into- int64, causing an- OverflowError(GH 25616)
- Fixed regression in - factorize()when passing a custom- na_sentinelvalue with- sort=True(GH 25409).
- Fixed regression in - DataFrame.to_csv()writing duplicate line endings with gzip compress (GH 25311)
Bug fixes#
I/O
- Better handling of terminal printing when the terminal dimensions are not known (GH 25080) 
- Bug in reading a HDF5 table-format - DataFramecreated in Python 2, in Python 3 (GH 24925)
- Bug in reading a JSON with - orient='table'generated by- DataFrame.to_json()with- index=False(GH 25170)
- Bug where float indexes could have misaligned values when printing (GH 25061) 
Categorical
- Bug where calling - Series.replace()on categorical data could return a- Serieswith incorrect dimensions (GH 24971)
Reshaping
- Bug in - GroupBy.transform()where applying a function to a timezone aware column would return a timezone naive result (GH 24198)
- Bug in - DataFrame.join()when joining on a timezone aware- DatetimeIndex(GH 23931)
Visualization
- Bug in - Series.plot()where a secondary y axis could not be set to log scale (GH 25545)
Other
- Bug in - Series.is_unique()where single occurrences of- NaNwere not considered unique (GH 25180)
- Bug in - merge()when merging an empty- DataFramewith an- Int64column or a non-empty- DataFramewith an- Int64column that is all- NaN(GH 25183)
- Bug in - IntervalTreewhere a- RecursionErroroccurs upon construction due to an overflow when adding endpoints, which also causes- IntervalIndexto crash during indexing operations (GH 25485)
- Bug in - Series.sizeraising for some extension-array-backed- Series, rather than returning the size (GH 25580)
- Bug in resampling raising for nullable integer-dtype columns (GH 25580) 
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