Deprecate accepting None in pd.concat #57846
Labels
Deprecate
Functionality to remove in pandas
Needs Discussion
Requires discussion from core team before further action
Reshaping
Concat, Merge/Join, Stack/Unstack, Explode
pd.concat
accepts iterables that may containSeries
,DataFrame
andNone
, whereNone
are simply ignored.It would be great to deprecate/remove accepting
None
s. This will help to better annotateconcat
pandas-dev/pandas-stubs#888Pandas-stubs currently has to choose between either false-positives (accept
concat([None])
) or false-negatives (reject someconcat(Iterable[Any/Unknown])
that could succeed).The text was updated successfully, but these errors were encountered: