-
-
Notifications
You must be signed in to change notification settings - Fork 19.4k
Open
Labels
DeprecateFunctionality to remove in pandasFunctionality to remove in pandasNeeds DiscussionRequires discussion from core team before further actionRequires discussion from core team before further actionReshapingConcat, Merge/Join, Stack/Unstack, ExplodeConcat, Merge/Join, Stack/Unstack, Explode
Description
pd.concat accepts iterables that may contain Series, DataFrame and None, where None are simply ignored.
pd.concat([None, series, None, series, None]) # works, same as pd.concat([series, series])
pd.concat([None]) # raisesIt would be great to deprecate/remove accepting Nones. This will help to better annotate concat pandas-dev/pandas-stubs#888
Pandas-stubs currently has to choose between either false-positives (accept concat([None]) ) or false-negatives (reject some concat(Iterable[Any/Unknown]) that could succeed).
Metadata
Metadata
Assignees
Labels
DeprecateFunctionality to remove in pandasFunctionality to remove in pandasNeeds DiscussionRequires discussion from core team before further actionRequires discussion from core team before further actionReshapingConcat, Merge/Join, Stack/Unstack, ExplodeConcat, Merge/Join, Stack/Unstack, Explode