We’ve added an engine keyword to apply() and apply()
that allows the user to execute the routine using Numba instead of Cython.
Using the Numba engine can yield significant performance gains if the apply function can operate on numpy arrays and
the data set is larger (1 million rows or greater). For more details, see
rolling apply documentation (GH 28987, GH 30936)
Defining custom windows for rolling operations
We’ve added a pandas.api.indexers.BaseIndexer() class that allows users to define how
window bounds are created during rolling operations. Users can define their own get_window_bounds
method on a pandas.api.indexers.BaseIndexer() subclass that will generate the start and end
indices used for each window during the rolling aggregation. For more details and example usage, see
the custom window rolling documentation
A new pd.NA value (singleton) is introduced to represent scalar missing
values. Up to now, pandas used several values to represent missing data: np.nan is used for this for float data, np.nan or
None for object-dtype data and pd.NaT for datetime-like data. The
goal of pd.NA is to provide a “missing” indicator that can be used
consistently across data types. pd.NA is currently used by the nullable integer and boolean
data types and the new string data type (GH 28095).
For example, creating a Series using the nullable integer dtype:
Compared to np.nan, pd.NA behaves differently in certain operations.
In addition to arithmetic operations, pd.NA also propagates as “missing”
or “unknown” in comparison operations:
In [6]: np.nan>1Out[6]: FalseIn [7]: pd.NA>1Out[7]: <NA>
For logical operations, pd.NA follows the rules of the
three-valued logic (or
Kleene logic). For example:
In [8]: pd.NA|TrueOut[8]: True
For more, see NA section in the user guide on missing
data.
Dedicated string data type
We’ve added StringDtype, an extension type dedicated to string data.
Previously, strings were typically stored in object-dtype NumPy arrays. (GH 29975)
The 'string' extension type solves several issues with object-dtype NumPy arrays:
You can accidentally store a mixture of strings and non-strings in an
object dtype array. A can only store strings.
Boolean data type with missing values support
We’ve added BooleanDtype / BooleanArray, an extension
type dedicated to boolean data that can hold missing values. The default
bool data type based on a bool-dtype NumPy array, the column can only hold
True or False, and not missing values. This new BooleanArray
can store missing values as well by keeping track of this in a separate mask.
(GH 29555, GH 30095, )
Method convert_dtypes to ease use of supported extension dtypes
In order to encourage use of the extension dtypes StringDtype,
BooleanDtype, Int64Dtype, Int32Dtype, etc., that support pd.NA, the
methods DataFrame.convert_dtypes() and Series.convert_dtypes()
have been introduced. (GH 29752) ()
DataFrames with nullable integer, the new string dtype
and period data type can now be converted to pyarrow (>=0.15.0), which means that it is
supported in writing to the Parquet file format when using the pyarrow engine (GH 28368).
Full roundtrip to parquet (writing and reading back in with to_parquet() / read_parquet())
is supported starting with pyarrow >= 0.16 (GH 20612).
to_parquet() now appropriately handles the schema argument for user defined schemas in the pyarrow engine. (GH 30270)
DataFrame.to_json() now accepts an indent integer argument to enable pretty printing of JSON output (GH 12004)
Added new writer for exporting Stata dta files in versions 118 and 119, StataWriterUTF8. These files formats support exporting strings containing Unicode characters. Format 119 supports data sets with more than 32,767 variables (GH 23573, GH 30959)
Series.map() now accepts collections.abc.Mapping subclasses as a mapper (GH 29733)
Added an experimental attrs for storing global metadata about a dataset (GH 29062)
Timestamp.fromisocalendar() is now compatible with python 3.8 and above (GH 28115)
As part of a larger refactor to MultiIndex the level names are now
stored separately from the levels (GH 27242). We recommend using
MultiIndex.names to access the names, and Index.set_names()
to update the names.
For backwards compatibility, you can still access the names via the levels.
In [24]: mi=pd.MultiIndex.from_product([[1,2],['a','b']],names=['x','y'])In [25]: mi.levels[0].nameOut[25]: 'x'
However, it is no longer possible to update the names of the MultiIndex
via the level.
In [26]: mi.levels[0].name="new name"---------------------------------------------------------------------------RuntimeErrorTraceback (most recent call last)
CellIn[26],line1----> 1mi.levels[0].name="new name"File ~/work/pandas/pandas/pandas/core/indexes/base.py:1697, in Index.name
: Cannot set name on a level of a MultiIndex. Use 'MultiIndex.set_names' instead.
To update, use MultiIndex.set_names, which returns a new MultiIndex.
In [28]: mi2=mi.set_names("new name",level=0)In [29]: mi2.namesOut[29]: FrozenList(['new name', 'y'])
DataFrame.rename now only accepts one positional argument
DataFrame.rename() would previously accept positional arguments that would lead
to ambiguous or undefined behavior. From pandas 1.0, only the very first argument, which
maps labels to their new names along the default axis, is allowed to be passed by position
(GH 29136).
pandas 0.25.x
In [1]: df=pd.DataFrame([[1]])In [2]: df.rename({0:
Initialising an empty pandas.Series without specifying a dtype will raise a DeprecationWarning now
(GH 17261). The default dtype will change from float64 to object in future releases so that it is
consistent with the behaviour of DataFrame and .
Result dtype inference changes for resample operations
The rules for the result dtype in DataFrame.resample() aggregations have changed for extension types (GH 31359).
Previously, pandas would attempt to convert the result back to the original dtype, falling back to the usual
inference rules if that was not possible. Now, pandas will only return a result of the original dtype if the
scalar values in the result are instances of the extension dtype’s scalar type.
In [48]: df=pd.DataFrame({"A":['a','b']},dtype='category',
Increased minimum version for Python
pandas 1.0.0 supports Python 3.6.1 and higher (GH 29212).
Increased minimum versions for dependencies
Some minimum supported versions of dependencies were updated (GH 29766, GH 29723).
If installed, we now require:
Package
Minimum Version
Required
Changed
numpy
1.13.3
Build changes
pandas has added a pyproject.toml file and will no longer include
cythonized files in the source distribution uploaded to PyPI (GH 28341, GH 20775). If you’re installing
a built distribution (wheel) or via conda, this shouldn’t have any effect on you. If you’re building pandas from
source, you should no longer need to install Cython into your build environment before calling pipinstallpandas.
Index.set_value has been deprecated. For a given index idx, array arr,
value in idx of idx_val and a new value of val, idx.set_value(arr,idx_val,val)
is equivalent to arr[idx.get_loc(idx_val)]=val, which should be used instead (GH 28621).
is_extension_type() is deprecated, is_extension_array_dtype() should be used instead (GH 29457)
eval() keyword argument “truediv” is deprecated and will be removed in a future version (GH 29812)
DateOffset.isAnchored() and DatetOffset.onOffset() are deprecated and will be removed in a future version, use DateOffset.is_anchored() and DateOffset.is_on_offset() instead (GH 30340)
pandas.tseries.frequencies.get_offset is deprecated and will be removed in a future version, use pandas.tseries.frequencies.to_offset instead (GH 4205)
Categorical.take_nd() and CategoricalIndex.take_nd() are deprecated, use Categorical.take() and CategoricalIndex.take() instead (GH 27745)
The parameter numeric_only of Categorical.min() and Categorical.max() is deprecated and replaced with skipna (GH 25303)
The parameter label in lreshape() has been deprecated and will be removed in a future version (GH 29742)
pandas.core.index has been deprecated and will be removed in a future version, the public classes are available in the top-level namespace (GH 19711)
pandas.json_normalize() is now exposed in the top-level namespace.
Usage of json_normalize as pandas.io.json.json_normalize is now deprecated and
it is recommended to use json_normalize as pandas.json_normalize() instead (GH 27586).
Support for multi-dimensional indexing (e.g. index[:,None]) on a Index is deprecated and will be removed in a future version, convert to a numpy array before indexing instead (GH 30588)
The pandas.np submodule is now deprecated. Import numpy directly instead (GH 30296)
The pandas.datetime class is now deprecated. Import from datetime instead (GH 30610)
diff will raise a TypeError rather than implicitly losing the dtype of extension types in the future. Convert to the correct dtype before calling diff instead (GH 31025)
Selecting Columns from a Grouped DataFrame
When selecting columns from a DataFrameGroupBy object, passing individual keys (or a tuple of keys) inside single brackets is deprecated,
a list of items should be used instead. (GH 23566) For example:
SparseSeries, SparseDataFrame and the DataFrame.to_sparse method
have been removed (GH 28425). We recommend using a Series or
DataFrame with sparse values instead.
Matplotlib unit registration
Previously, pandas would register converters with matplotlib as a side effect of importing pandas (GH 18720).
This changed the output of plots made via matplotlib plots after pandas was imported, even if you were using
matplotlib directly rather than plot().
To use pandas formatters with a matplotlib plot, specify
In [1]: importpandasaspdIn [2]: pd.options.plotting.matplotlib.register_converters=True
Note that plots created by DataFrame.plot() and Series.plot()do register the converters
automatically. The only behavior change is when plotting a date-like object via matplotlib.pyplot.plot
or matplotlib.Axes.plot. See Custom formatters for timeseries plots for more.
Other removals
Removed the previously deprecated keyword “index” from read_stata(), StataReader, and StataReader.read(), use “index_col” instead (GH 17328)
Removed StataReader.data method, use StataReader.read() instead (GH 9493)
Performance improvement in Categorical.searchsorted() and CategoricalIndex.searchsorted() (GH 28795)
Performance improvement when comparing a Categorical with a scalar and the scalar is not found in the categories (GH 29750)
Performance improvement when checking if values in a Categorical are equal, equal or larger or larger than a given scalar.
The improvement is not present if checking if the Categorical is less than or less than or equal than the scalar (GH 29820)
Changed the error message in Categorical.remove_categories() to always show the invalid removals as a set (GH 28669)
Using date accessors on a categorical dtyped Series of datetimes was not returning an object of the
same type as if one used the str.() / dt.() on a Series of that type. E.g. when accessing Series.dt.tz_localize() on a
Categorical with duplicate entries, the accessor was skipping duplicates (GH 27952)
Bug in Series.__setitem__() incorrectly casting np.timedelta64("NaT") to np.datetime64("NaT") when inserting into a Series with datetime64 dtype (GH 27311)
Bug in Series.dt() property lookups when the underlying data is read-only (GH 27529)
Bug in HDFStore.__getitem__ incorrectly reading tz attribute created in Python 2 (GH 26443)
Timedelta
Bug in subtracting a TimedeltaIndex or TimedeltaArray from a np.datetime64 object (GH 29558)
Fix assignment of column via .loc with numpy non-ns datetime type ()
Missing
MultiIndex
Constructor for MultiIndex verifies that the given sortorder is compatible with the actual lexsort_depth if verify_integrity parameter is True (the default) (GH 28735)
Series and MultiIndex .drop with MultiIndex raise exception if labels not in given in level (GH 8594)
IO
read_csv() now accepts binary mode file buffers when using the Python csv engine (GH 23779)
Bug in DataFrame.to_json() where using a Tuple as a column or index value and using orient="columns" or orient="index" would produce invalid JSON (GH 20500)
Improve infinity parsing. read_csv() now interprets , , as floating point values ()
Bug in DataFrame.stack() not handling non-unique indexes correctly when creating MultiIndex (GH 28301)
Bug in not returning correct type when and ()
Sparse
Bug in SparseDataFrame arithmetic operations incorrectly casting inputs to float (GH 28107)
Bug in DataFrame.sparse returning a Series when there was a column named sparse rather than the accessor (GH 30758)
Fixed operator.xor() with a boolean-dtype SparseArray. Now returns a sparse result, rather than object dtype (GH 31025)
ExtensionArray
Bug in arrays.PandasArray when setting a scalar string (GH 28118, GH 28150).
Bug where nullable integers could not be compared to strings (GH 28930)
Bug where DataFrame constructor raised ValueError with list-like data and dtype specified (GH 30280)
Other
Trying to set the display.precision, display.max_rows or display.max_columns using set_option() to anything but a None or a positive int will raise a ValueError (GH 23348)
Using DataFrame.replace() with overlapping keys in a nested dictionary will no longer raise, now matching the behavior of a flat dictionary (GH 27660)
Contributors
A total of 308 people contributed patches to this release. People with a
“+” by their names contributed a patch for the first time.
Aaditya Panikath +
Abdullah İhsan Seçer
Abhijeet Krishnan +
Adam J. Stewart
Adam Klaum +
Addison Lynch
Aivengoe +
Alastair James +
Albert Villanova del Moral
Alex Kirko +
Alfredo Granja +
Allen Downey
Alp Arıbal +
Andreas Buhr +
Andrew Munch +
Andy
Angela Ambroz +
Aniruddha Bhattacharjee +
Ankit Dhankhar +
Antonio Andraues Jr +
Arda Kosar +
Asish Mahapatra +
Austin Hackett +
Avi Kelman +
AyowoleT +
Bas Nijholt +
Ben Thayer
Bharat Raghunathan
Bhavani Ravi
Bhuvana KA +
Big Head
Blake Hawkins +
Bobae Kim +
Brett Naul
Brian Wignall
Bruno P. Kinoshita +
Bryant Moscon +
Cesar H +
Chris Stadler
Chris Zimmerman +
Christopher Whelan
Clemens Brunner
Clemens Tolboom +
Connor Charles +
Daniel Hähnke +
Daniel Saxton
Darin Plutchok +
Dave Hughes
David Stansby
DavidRosen +
Dean +
Deepan Das +
Deepyaman Datta
DorAmram +
Dorothy Kabarozi +
Drew Heenan +
Eliza Mae Saret +
Elle +
Endre Mark Borza +
Eric Brassell +
Eric Wong +
Eunseop Jeong +
Eyden Villanueva +
Felix Divo
ForTimeBeing +
Francesco Truzzi +
Gabriel Corona +
Gabriel Monteiro +
Galuh Sahid +
Georgi Baychev +
Gina
GiuPassarelli +
Grigorios Giannakopoulos +
Guilherme Leite +
Guilherme Salomé +
Gyeongjae Choi +
Harshavardhan Bachina +
Harutaka Kawamura +
Hassan Kibirige
Hielke Walinga
Hubert
Hugh Kelley +
Ian Eaves +
Ignacio Santolin +
Igor Filippov +
Irv Lustig
Isaac Virshup +
Ivan Bessarabov +
JMBurley +
Jack Bicknell +
Jacob Buckheit +
Jan Koch
Jan Pipek +
Jan Škoda +
Jan-Philip Gehrcke
Jasper J.F. van den Bosch +
Javad +
Jeff Reback
Jeremy Schendel
Jeroen Kant +
Jesse Pardue +
Jethro Cao +
Jiang Yue
Jiaxiang +
Jihyung Moon +
Jimmy Callin
Jinyang Zhou +
Joao Victor Martinelli +
Joaq Almirante +
John G Evans +
John Ward +
Jonathan Larkin +
Joris Van den Bossche
Josh Dimarsky +
Joshua Smith +
Josiah Baker +
Julia Signell +
Jung Dong Ho +
Justin Cole +
Justin Zheng
Kaiqi Dong
Karthigeyan +
Katherine Younglove +
Katrin Leinweber
Kee Chong Tan +
Keith Kraus +
Kevin Nguyen +
Kevin Sheppard
Kisekka David +
Koushik +
Kyle Boone +
Kyle McCahill +
Laura Collard, PhD +
LiuSeeker +
Louis Huynh +
Lucas Scarlato Astur +
Luiz Gustavo +
Luke +
Luke Shepard +
MKhalusova +
Mabel Villalba
Maciej J +
Mak Sze Chun
Manu NALEPA +
Marc
Marc Garcia
Marco Gorelli +
Marco Neumann +
Martin Winkel +
Martina G. Vilas +
Mateusz +
Matthew Roeschke
Matthew Tan +
Max Bolingbroke
Max Chen +
MeeseeksMachine
Miguel +
MinGyo Jung +
Mohamed Amine ZGHAL +
Mohit Anand +
MomIsBestFriend +
Naomi Bonnin +
Nathan Abel +
Nico Cernek +
Nigel Markey +
Noritada Kobayashi +
Oktay Sabak +
Oliver Hofkens +
Oluokun Adedayo +
Osman +
Oğuzhan Öğreden +
Pandas Development Team +
Patrik Hlobil +
Paul Lee +
Paul Siegel +
Petr Baev +
Pietro Battiston
Prakhar Pandey +
Puneeth K +
Raghav +
Rajat +
Rajhans Jadhao +
Rajiv Bharadwaj +
Rik-de-Kort +
Roei.r
Rohit Sanjay +
Ronan Lamy +
Roshni +
Roymprog +
Rushabh Vasani +
Ryan Grout +
Ryan Nazareth
Samesh Lakhotia +
Samuel Sinayoko
Samyak Jain +
Sarah Donehower +
Sarah Masud +
Saul Shanabrook +
Scott Cole +
SdgJlbl +
Seb +
Sergei Ivko +
Shadi Akiki
Shorokhov Sergey
Siddhesh Poyarekar +
Sidharthan Nair +
Simon Gibbons
Simon Hawkins
Simon-Martin Schröder +
Sofiane Mahiou +
Sourav kumar +
Souvik Mandal +
Soyoun Kim +
Sparkle Russell-Puleri +
Srinivas Reddy Thatiparthy (శ్రీనివాస్ రెడ్డి తాటిపర్తి)
Stuart Berg +
Sumanau Sareen
Szymon Bednarek +
Tambe Tabitha Achere +
Tan Tran
Tang Heyi +
Tanmay Daripa +
Tanya Jain
Terji Petersen
Thomas Li +
Tirth Jain +
Tola A +
Tom Augspurger
Tommy Lynch +
Tomoyuki Suzuki +
Tony Lorenzo
Unprocessable +
Uwe L. Korn
Vaibhav Vishal
Victoria Zdanovskaya +
Vijayant +
Vishwak Srinivasan +
WANG Aiyong
Wenhuan
Wes McKinney
Will Ayd
Will Holmgren
William Ayd
William Blan +
Wouter Overmeire
Wuraola Oyewusi +
YaOzI +
Yash Shukla +
Yu Wang +
Yusei Tahara +
alexander135 +
alimcmaster1
avelineg +
bganglia +
bolkedebruin
bravech +
chinhwee +
cruzzoe +
dalgarno +
daniellebrown +
danielplawrence
est271 +
francisco souza +
ganevgv +
garanews +
gfyoung
h-vetinari
hasnain2808 +
ianzur +
jalbritt +
jbrockmendel
jeschwar +
jlamborn324 +
joy-rosie +
kernc
killerontherun1
krey +
lexy-lixinyu +
lucyleeow +
lukasbk +
maheshbapatu +
mck619 +
nathalier
naveenkaushik2504 +
nlepleux +
nrebena
ohad83 +
pilkibun
pqzx +
proost +
pv8493013j +
qudade +
rhstanton +
rmunjal29 +
sangarshanan +
sardonick +
saskakarsi +
shaido987 +
ssikdar1
steveayers124 +
tadashigaki +
timcera +
tlaytongoogle +
tobycheese
tonywu1999 +
tsvikas +
yogendrasoni +
zys5945 +
,
3
]},
index
=
[
'a'
,
'a'
,
'b'
])
In [2]:
print
(
df
.
to_markdown
())
| | A | B |
|:---|----:|----:|
| a | 1 | 1 |
| a | 2 | 2 |
| b | 3 | 3 |
StringArray
object dtype breaks dtype-specific operations like DataFrame.select_dtypes().
There isn’t a clear way to select just text while excluding non-text,
but still object-dtype columns.
When reading code, the contents of an object dtype array is less clear
than string.
In [9]: pd.Series(['abc',None,'def'],dtype=pd.StringDtype())Out[9]: 0 abc1 <NA>2 defLength: 3, dtype: string
FutureWarning: ...Use named arguments to resolve ambiguity...
2
1 1
pandas 1.0.0
In [3]: df.rename({0:1},{0:2})Traceback (most recent call last):...TypeError: rename() takes from 1 to 2 positional arguments but 3 were given
Note that errors will now be raised when conflicting or potentially ambiguous arguments are provided.
pandas 0.25.x
In [4]: df.rename({0:1},index={0:2})Out[4]: 01 1In [5]: df.rename(mapper={0:1},index={0:2})Out[5]: 02 1
pandas 1.0.0
In [6]: df.rename({0:1},index={0:2})Traceback (most recent call last):...TypeError: Cannot specify both 'mapper' and any of 'index' or 'columns'In [7]: df.rename(mapper={0:1},index={0:2})Traceback (most recent call last):...TypeError: Cannot specify both 'mapper' and any of 'index' or 'columns'
You can still change the axis along which the first positional argument is applied by
supplying the axis keyword argument.
In [31]: df.rename({0:1})Out[31]: 01 1[1 rows x 1 columns]In [32]: df.rename({0:1},axis=1)Out[32]: 10 1[1 rows x 1 columns]
If you would like to update both the index and column labels, be sure to use the respective
keywords.
In [33]: df.rename(index={0:1},columns={0:2})Out[33]: 21 1[1 rows x 1 columns]
When converting to a NumPy array missing values will be pd.NA, which cannot
be converted to a float. So calling np.asarray(integer_array,dtype="float")
will now raise.
pandas 0.25.x
In [1]: np.asarray(a,dtype="float")Out[1]:array([ 1., 2., nan])
pandas 1.0.0
In [41]: np.asarray(a,dtype="float")Out[41]: array([ 1., 2., nan])
Use arrays.IntegerArray.to_numpy() with an explicit na_value instead.
In [42]: a.to_numpy(dtype="float",na_value=np.nan)Out[42]: array([ 1., 2., nan])
Reductions can returnpd.NA
When performing a reduction such as a sum with skipna=False, the result
will now be pd.NA instead of np.nan in presence of missing values
(GH 30958).
pandas 0.25.x
In [1]: pd.Series(a).sum(skipna=False)Out[1]:nan
pandas 1.0.0
In [43]: pd.Series(a).sum(skipna=False)Out[43]: <NA>
value_counts returns a nullable integer dtype
Series.value_counts() with a nullable integer dtype now returns a nullable
integer dtype for the values.
pandas 0.25.x
In [1]: pd.Series([2,1,1,None],dtype="Int64").value_counts().dtypeOut[1]:dtype('int64')
pandas 1.0.0
In [44]: pd.Series([2,1,1,None],dtype="Int64").value_counts().dtypeOut[44]: Int64Dtype()
Note that missing values now propagate, rather than always comparing unequal
like numpy.nan. See NA semantics for more.
,
np
.
nan
],
ordered
=
True
)
.
min
()
Out[1]:
nan
pandas 1.0.0
In [47]: pd.Categorical([1,2,np.nan],ordered=True).min()Out[47]: 1
Index
pandas 1.0.0
In [1]: pd.Series()Out[2]:DeprecationWarning: The default dtype for empty Series will be 'object' instead of 'float64' in a future version. Specify a dtype explicitly to silence this warning.Series([], dtype: float64)
In [50]: df.resample("2D").agg(lambdax:'a').A.dtypeOut[50]: CategoricalDtype(categories=['a', 'b'], ordered=False, categories_dtype=object)
This fixes an inconsistency between resample and groupby.
This also fixes a potential bug, where the values of the result might change
depending on how the results are cast back to the original dtype.
In [51]: df.resample("2D").agg(lambdax:'c')Out[51]: A2000-01-01 c[1 rows x 1 columns]
X
pytz
2015.4
X
python-dateutil
2.6.1
X
bottleneck
1.2.1
numexpr
2.6.2
pytest (dev)
4.0.2
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.
In order to improve tab-completion, pandas does not include most deprecated attributes when introspecting a pandas object using dir (e.g. dir(df)).
To see which attributes are excluded, see an object’s _deprecations attribute, for example pd.DataFrame._deprecations (GH 28805).
The returned dtype of unique() now matches the input dtype. (GH 27874)
Changed the default configuration value for options.matplotlib.register_converters from True to "auto" (GH 18720).
Now, pandas custom formatters will only be applied to plots created by pandas, through plot().
Previously, pandas’ formatters would be applied to all plots created after a plot().
See units registration for more.
Series.dropna() has dropped its **kwargs argument in favor of a single how parameter.
Supplying anything else than how to **kwargs raised a TypeError previously (GH 29388)
When testing pandas, the new minimum required version of pytest is 5.0.1 (GH 29664)
Series.str.__iter__() was deprecated and will be removed in future releases (GH 28277).
Floordiv of integer-dtyped array by Timedelta now raises TypeError (GH 21036)
TimedeltaIndex and DatetimeIndex no longer accept non-nanosecond dtype strings like “timedelta64” or “datetime64”, use “timedelta64[ns]” and “datetime64[ns]” instead (GH 24806)
Removed the previously deprecated keyword “time_rule” from (non-public) offsets.generate_range, which has been moved to core.arrays._ranges.generate_range() (GH 24157)
Passing datetime64 data to TimedeltaIndex or timedelta64 data to DatetimeIndex now raises TypeError (GH 23539, GH 23937)
Passing int64 values to DatetimeIndex and a timezone now interprets the values as nanosecond timestamps in UTC, not wall times in the given timezone (GH 24559)
Removed support for legacy HDF5 formats (GH 29787)
Passing a dtype alias (e.g. ‘datetime64[ns, UTC]’) to DatetimeTZDtype is no longer allowed, use DatetimeTZDtype.construct_from_string() instead (GH 23990)
Removed the previously deprecated keyword “skip_footer” from read_excel(); use “skipfooter” instead (GH 18836)
read_excel() no longer allows an integer value for the parameter usecols, instead pass a list of integers from 0 to usecols inclusive (GH 23635)
Changed the default “sort” argument in concat() from None to False (GH 20613)
Removed the previously deprecated keyword “raise_conflict” from DataFrame.update(), use “errors” instead (GH 23585)
Removed the previously deprecated keyword “n” from DatetimeIndex.shift(), TimedeltaIndex.shift(), PeriodIndex.shift(), use “periods” instead (GH 22458)
Removed the previously deprecated keywords “how”, “fill_method”, and “limit” from DataFrame.resample() (GH 30139)
The ‘outer’ method on Numpy ufuncs, e.g. np.subtract.outer operating on Series objects is no longer supported, and will raise NotImplementedError (GH 27198)
Removed Series.get_dtype_counts and DataFrame.get_dtype_counts (GH 27145)
Changed the default “fill_value” argument in Categorical.take() from True to False (GH 20841)
Changed the default value for the raw argument in Series.rolling().apply(), DataFrame.rolling().apply(), Series.expanding().apply(), and DataFrame.expanding().apply() from None to False (GH 20584)
Changed Timedelta.resolution() to match the behavior of the standard library datetime.timedelta.resolution, for the old behavior, use Timedelta.resolution_string() (GH 26839)
Removed Timestamp.weekday_name, DatetimeIndex.weekday_name, and Series.dt.weekday_name (GH 18164)
Bug in Week with weekday incorrectly raising AttributeError instead of TypeError when adding or subtracting an invalid type (GH 28530)
Bug in DataFrame arithmetic operations when operating with a Series with dtype 'timedelta64[ns]' (GH 28049)
Bug in core.groupby.generic.SeriesGroupBy.apply() raising ValueError when a column in the original DataFrame is a datetime and the column labels are not standard integers (GH 28247)
Bug in pandas._config.localization.get_locales() where the locales-a encodes the locales list as windows-1252 (GH 23638, GH 24760, GH 27368)
Bug in Series.var() failing to raise TypeError when called with timedelta64[ns] dtype (GH 28289)
Bug in Series.item() with datetime64 or timedelta64 dtype, DatetimeIndex.item(), and TimedeltaIndex.item() returning an integer instead of a Timestamp or Timedelta (GH 30175)
Bug in DatetimeIndex addition when adding a non-optimized DateOffset incorrectly dropping timezone information (GH 30336)
Bug in DataFrame.drop() where attempting to drop non-existent values from a DatetimeIndex would yield a confusing error message (GH 30399)
Bug in DataFrame.append() would remove the timezone-awareness of new data (GH 30238)
Bug in DatetimeArray, TimedeltaArray, and PeriodArray where inplace addition and subtraction did not actually operate inplace (GH 24115)
Bug in pandas.to_datetime() when called with Series storing IntegerArray raising TypeError instead of returning Series (GH 30050)
Bug in date_range() with custom business hours as freq and given number of periods (GH 30593)
Bug in PeriodIndex comparisons with incorrectly casting integers to Period objects, inconsistent with the Period comparison behavior (GH 30722)
Bug in DatetimeIndex.insert() raising a ValueError instead of a TypeError when trying to insert a timezone-aware Timestamp into a timezone-naive DatetimeIndex, or vice-versa (GH 30806)
Bug in Series.var() not computing the right value with a nullable integer dtype series not passing through ddof argument (GH 29128)
Improved error message when using frac > 1 and replace = False (GH 27451)
Bug in numeric indexes resulted in it being possible to instantiate an Int64Index, UInt64Index, or Float64Index with an invalid dtype (e.g. datetime-like) (GH 29539)
Bug in UInt64Index precision loss while constructing from a list with values in the np.uint64 range (GH 29526)
Bug in NumericIndex construction that caused indexing to fail when integers in the np.uint64 range were used (GH 28023)
Bug in NumericIndex construction that caused UInt64Index to be casted to Float64Index when integers in the np.uint64 range were used to index a DataFrame (GH 28279)
Bug in Series.interpolate() when using method=`index` with an unsorted index, would previously return incorrect results. (GH 21037)
Bug in Series.__setitem__() incorrectly assigning values with boolean indexer when the length of new data matches the number of True values and new data is not a Series or an np.array (GH 30567)
Bug in indexing with a PeriodIndex incorrectly accepting integers representing years, use e.g. ser.loc["2007"] instead of ser.loc[2007] (GH 30763)
set_option() now validates that the plot backend provided to 'plotting.backend' implements the backend when the option is set, rather than when a plot is created (GH 28163)
DataFrame.plot() now allow a backend keyword argument to allow changing between backends in one session (GH 28619).
Bug in color validation incorrectly raising for non-color styles (GH 29122).
Remove error raised due to duplicated input functions in named aggregation in DataFrame.groupby() and Series.groupby(). Previously error will be raised if the same function is applied on the same column and now it is allowed if new assigned names are different. (GH 28426)
Fix to ensure all int dtypes can be used in merge_asof() when using a tolerance value. Previously every non-int64 type would raise an erroneous MergeError (GH 28870).
Better error message in get_dummies() when columns isn’t a list-like value (GH 28383)
Bug in Index.join() that caused infinite recursion error for mismatched MultiIndex name orders. (GH 25760, GH 28956)
DataFrame.to_csv() and Series.to_csv() now support dicts as compression argument with key 'method' being the compression method and others as additional compression options when the compression method is 'zip'. (GH 26023)
Bug in Series.diff() where a boolean series would incorrectly raise a TypeError (GH 17294)
Series.append() will no longer raise a TypeError when passed a tuple of Series (GH 28410)
Fix corrupted error message when calling pandas.libs._json.encode() on a 0d array (GH 18878)
Backtick quoting in DataFrame.query() and DataFrame.eval() can now also be used to use invalid identifiers like names that start with a digit, are python keywords, or are using single character operators. (GH 27017)
Bug in pd.core.util.hashing.hash_pandas_object where arrays containing tuples were incorrectly treated as non-hashable (GH 28969)
Bug in DataFrame.append() that raised IndexError when appending with empty list (GH 28769)
Fix AbstractHolidayCalendar to return correct results for
years after 2030 (now goes up to 2200) (GH 27790)
Fixed IntegerArray returning inf rather than NaN for operations dividing by 0 (GH 27398)