Skip to content

Latest commit

 

History

History
212 lines (140 loc) · 4.44 KB

v0.25.0.rst

File metadata and controls

212 lines (140 loc) · 4.44 KB

What's New in 0.25.0 (April XX, 2019)

Warning

Starting with the 0.25.x series of releases, pandas only supports Python 3.5 and higher. See install.dropping-27 for more details.

{{ header }}

These are the changes in pandas 0.25.0. See release for a full changelog including other versions of pandas.

Other Enhancements

  • Indexing of DataFrame and Series now accepts zerodim np.ndarray (24919)
  • Timestamp.replace now supports the fold argument to disambiguate DST transition times (25017)
  • DataFrame.at_time and Series.at_time now support datetime.time objects with timezones (24043)

Backwards incompatible API changes

  • Timestamp.strptime will now rise a NotImplementedError (21257)

Other API Changes

  • DatetimeTZDtype will now standardize pytz timezones to a common timezone instance (24713)
  • Timestamp and Timedelta scalars now implement the to_numpy method as aliases to Timestamp.to_datetime64 and Timedelta.to_timedelta64, respectively. (24653)

Deprecations

  • Deprecated the M (months) and Y (year) units parameter of :func: pandas.to_timedelta, :func: pandas.Timedelta and :func: pandas.TimedeltaIndex (16344)

Removal of prior version deprecations/changes

  • Removed (parts of) Panel (25047,25191,25231)

Performance Improvements

  • Significant speedup in SparseArray initialization that benefits most operations, fixing performance regression introduced in v0.20.0 (24985)
  • DataFrame.to_stata() is now faster when outputting data with any string or non-native endian columns (25045)

Bug Fixes

Categorical

Datetimelike

Timedelta

Timezones

  • Bug in to_datetime with utc=True and datetime strings that would apply previously parsed UTC offsets to subsequent arguments (24992)
  • Bug in Timestamp.tz_localize and Timestamp.tz_convert does not propagate freq (25241)

Numeric

  • Bug in to_numeric in which large negative numbers were being improperly handled (24910)
  • Bug in to_numeric in which numbers were being coerced to float, even though errors was not coerce (24910)

Conversion

Strings

Interval

Indexing

Missing

  • Fixed misleading exception message in Series.missing if argument order is required, but omitted (10633, 24014).
  • Fixed MultiIndex bug copying values incorrectly when adding values to index, in case NaN is included in the index (22247)

MultiIndex

  • Bug in which incorrect exception raised by pd.Timedelta when testing the membership of MultiIndex (24570)

I/O

  • Fixed bug in missing text when using to_clipboard if copying utf-16 characters in Python 3 on Windows (25040)

Plotting

Groupby/Resample/Rolling

  • Bug in pandas.core.resample.Resampler.agg with a timezone aware index where OverflowError would raise when passing a list of functions (22660)

Reshaping

  • Bug in pandas.merge adds a string of None if None is assigned in suffixes instead of remain the column name as-is (24782).
  • Bug in merge when merging by index name would sometimes result in an incorrectly numbered index (24212)
  • to_records now accepts dtypes to its column_dtypes parameter (24895)

Sparse

  • Significant speedup in SparseArray initialization that benefits most operations, fixing performance regression introduced in v0.20.0 (24985)

Other

Contributors

v0.24.x..HEAD