You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The original 2.0 compatibility tracker #624 is very long. Here I list only the unresolved items as of 2025-12-23.
This is the list of things that are in pandas 2.0 release notes that need to be addressed in pandas-stubs. PR's welcome. If you do a PR, check off the item and put a link to the PR that closed it. One PR can address multiple issues.
Some of these may already have been taken care of, so if so, check them off and indicate with a comment such as "previously complete"
Construction with datetime64 or timedelta64 dtype with unsupported resolution (check allowable resolutions for pd.Series())
Need to add tests
DatetimeIndex.astype(), TimedeltaIndex.astype(), PeriodIndex.astype() Series.astype(), DataFrame.astype() with datetime64, timedelta64 or PeriodDtype dtypes no longer allow converting to integer dtypes other than “int64”, do obj.astype('int64', copy=False).astype(dtype) instead
to_datetime() and DatetimeIndex now allow sequences containing both datetime objects and numeric entries, matching Series behavior
Disallow computing cumprod for Timedelta object; previously this returned incorrect values
Disallow astype conversion to non-supported datetime64/timedelta64 dtypes
We have comprehensive tests test_astype_timestamp
The pandas latex options below are no longer used and have been removed. The generic max rows and columns arguments remain but for this functionality should be replaced by the Styler equivalents. The alternative options giving similar functionality are indicated below:
display.latex.escape: replaced with styler.format.escape,
display.latex.longtable: replaced with styler.latex.environment,
display.latex.multicolumn, display.latex.multicolumn_format and display.latex.multirow: replaced with styler.sparse.rows, styler.sparse.columns, styler.latex.multirow_align and styler.latex.multicol_align,
display.latex.repr: replaced with styler.render.repr,
display.max_rows and display.max_columns: replace with styler.render.max_rows, styler.render.max_columns and styler.render.max_elements.
Removed deprecated CategoricalBlock, Block.is_categorical(), require datetime64 and timedelta64 values to be wrapped in DatetimeArray or TimedeltaArray before passing to Block.make_block_same_class(), require DatetimeTZBlock.values to have the correct ndim when passing to the BlockManager constructor, and removed the “fastpath” keyword from the SingleBlockManager constructor
Block is not in the stubs
Removed deprecated global option use_inf_as_null in favor of use_inf_as_na
The original 2.0 compatibility tracker #624 is very long. Here I list only the unresolved items as of 2025-12-23.
This is the list of things that are in pandas 2.0 release notes that need to be addressed in
pandas-stubs. PR's welcome. If you do a PR, check off the item and put a link to the PR that closed it. One PR can address multiple issues.Some of these may already have been taken care of, so if so, check them off and indicate with a comment such as "previously complete"
pd.Series())Series.str.__iter__()DataFrameGroupBy.__getitem__()__getitem__and__setitem__methodsNaTwith a datetime.date object; these now raise on inequality comparisons (TST: propagate pandas-dev/pandas#39196 #1674)Resolved
config.pyi#1602test_astype_timestampconfig.pyi#1602Blockis not in the stubsconfig.pyi#1602codesinMultiIndex.copy, the rest are still therenp.ndarrayravelinIndexandSeriespandas-dev/pandas#36900 pandas-dev/pandas#52511 #1613