-
-
Notifications
You must be signed in to change notification settings - Fork 18.7k
Closed
Labels
Needs DiscussionRequires discussion from core team before further actionRequires discussion from core team before further actionTypingtype annotations, mypy/pyright type checkingtype annotations, mypy/pyright type checking
Description
From the discussion in PR #36409 it was mentioned that it is undesirable to type API functions as NDFrame
as this may be confusing from a user perspective since it shows up in the docs. Currently the difference between NDFrame
and FrameOrSeriesUnion = Union[DataFrame, Series]
is that the former can be used in methods of NDFrame (and those called from NDFrame methods) whereas the latter cannot.
Is there a benefit to this restriction? If not, I propose changing FrameOrSeriesUnion
to be an alias of NDFrame
. This would then be user-friendly for the docs.
Metadata
Metadata
Assignees
Labels
Needs DiscussionRequires discussion from core team before further actionRequires discussion from core team before further actionTypingtype annotations, mypy/pyright type checkingtype annotations, mypy/pyright type checking