Compatibility with matplotlib 3.3.0 (GH 34850)
IntegerArray.astype() now supports datetime64 dtype (GH 32538)
IntegerArray now implements the sum operation (GH 33172)
Added pandas.errors.InvalidIndexError (GH 34570).
Added DataFrame.value_counts() (GH 5377)
Added a pandas.api.indexers.FixedForwardWindowIndexer() class to support forward-looking windows during rolling operations.
Added a pandas.api.indexers.VariableOffsetWindowIndexer() class to support rolling operations with non-fixed offsets (GH 34994)
describe() now includes a datetime_is_numeric keyword to control how datetime columns are summarized (GH 30164, GH 34798)
Styler may now render CSS more efficiently where multiple cells have the same styling (GH 30876)
highlight_null() now accepts subset argument (GH 31345)
When writing directly to a sqlite connection DataFrame.to_sql() now supports the multi method (GH 29921)
pandas.errors.OptionError is now exposed in pandas.errors (GH 27553)
Added api.extensions.ExtensionArray.argmax() and api.extensions.ExtensionArray.argmin() (GH 24382)
timedelta_range() will now infer a frequency when passed start, stop, and periods (GH 32377)
Positional slicing on a IntervalIndex now supports slices with step > 1 (GH 31658)
Series.str now has a fullmatch method that matches a regular expression against the entire string in each row of the Series, similar to re.fullmatch (GH 32806).
DataFrame.sample() will now also allow array-like and BitGenerator objects to be passed to random_state as seeds (GH 32503)
Index.union() will now raise RuntimeWarning for MultiIndex objects if the object inside are unsortable. Pass sort=False to suppress this warning (GH 33015)
Added Series.dt.isocalendar() and DatetimeIndex.isocalendar() that returns a DataFrame with year, week, and day calculated according to the ISO 8601 calendar (GH 33206, GH 34392).
The DataFrame.to_feather() method now supports additional keyword
arguments (e.g. to set the compression) that are added in pyarrow 0.17
(GH 33422).
The cut() will now accept parameter ordered with default ordered=True. If ordered=False and no labels are provided, an error will be raised (GH 33141)
DataFrame.to_csv(), DataFrame.to_pickle(),
and DataFrame.to_json() now support passing a dict of
compression arguments when using the gzip and bz2 protocols.
This can be used to set a custom compression level, e.g.,
df.to_csv(path, compression={'method': 'gzip', 'compresslevel': 1}
(GH 33196)
melt() has gained an ignore_index (default True) argument that, if set to False, prevents the method from dropping the index (GH 17440).
Series.update() now accepts objects that can be coerced to a Series,
such as dict and list, mirroring the behavior of DataFrame.update() (GH 33215)
DataFrameGroupBy.transform() and DataFrameGroupBy.aggregate() have gained engine and engine_kwargs arguments that support executing functions with Numba (GH 32854, GH 33388)
Resampler.interpolate() now supports SciPy interpolation method scipy.interpolate.CubicSpline as method cubicspline (GH 33670)
DataFrameGroupBy and SeriesGroupBy now implement the sample method for doing random sampling within groups (GH 31775)
DataFrame.to_numpy() now supports the na_value keyword to control the NA sentinel in the output array (GH 33820)
Added api.extension.ExtensionArray.equals to the extension array interface, similar to Series.equals() (GH 27081)
The minimum supported dta version has increased to 105 in read_stata() and StataReader (GH 26667).
to_stata() supports compression using the compression
keyword argument. Compression can either be inferred or explicitly set using a string or a
dictionary containing both the method and any additional arguments that are passed to the
compression library. Compression was also added to the low-level Stata-file writers
StataWriter, StataWriter117,
and StataWriterUTF8 (GH 26599).
HDFStore.put() now accepts a track_times parameter. This parameter is passed to the create_table method of PyTables (GH 32682).
Series.plot() and DataFrame.plot() now accepts xlabel and ylabel parameters to present labels on x and y axis (GH 9093).
Made Rolling and Expanding iterable(GH 11704)
Made option_context a contextlib.ContextDecorator, which allows it to be used as a decorator over an entire function (GH 34253).
DataFrame.to_csv() and Series.to_csv() now accept an errors argument (GH 22610)
DataFrameGroupBy.groupby.transform() now allows func to be pad, backfill and cumcount (GH 31269).
read_json() now accepts an nrows parameter. (GH 33916).
DataFrame.hist(), Series.hist(), core.groupby.DataFrameGroupBy.hist(), and core.groupby.SeriesGroupBy.hist() have gained the legend argument. Set to True to show a legend in the histogram. (GH 6279)
concat() and append() now preserve extension dtypes, for example
combining a nullable integer column with a numpy integer column will no longer
result in object dtype but preserve the integer dtype (GH 33607, GH 34339, GH 34095).
read_gbq() now allows to disable progress bar (GH 33360).
read_gbq() now supports the max_results kwarg from pandas-gbq (GH 34639).
DataFrame.cov() and Series.cov() now support a new parameter ddof to support delta degrees of freedom as in the corresponding numpy methods (GH 34611).
DataFrame.to_html() and DataFrame.to_string()’s col_space parameter now accepts a list or dict to change only some specific columns’ width (GH 28917).
DataFrame.to_excel() can now also write OpenOffice spreadsheet (.ods) files (GH 27222)
explode() now accepts ignore_index to reset the index, similar to pd.concat() or DataFrame.sort_values() (GH 34932).
DataFrame.to_markdown() and Series.to_markdown() now accept index argument as an alias for tabulate’s showindex (GH 32667)
read_csv() now accepts string values like “0”, “0.0”, “1”, “1.0” as convertible to the nullable Boolean dtype (GH 34859)
ExponentialMovingWindow now supports a times argument that allows mean to be calculated with observations spaced by the timestamps in times (GH 34839)
DataFrame.agg() and Series.agg() now accept named aggregation for renaming the output columns/indexes. (GH 26513)
compute.use_numba now exists as a configuration option that utilizes the numba engine when available (GH 33966, GH 35374)
Series.plot() now supports asymmetric error bars. Previously, if Series.plot() received a “2xN” array with error values for yerr and/or xerr, the left/lower values (first row) were mirrored, while the right/upper values (second row) were ignored. Now, the first row represents the left/lower error values and the second row the right/upper error values. (GH 9536)