File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed
Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change 4242
4343Dtype = Union [str , np .dtype , "ExtensionDtype" ]
4444FilePathOrBuffer = Union [str , Path , IO [AnyStr ]]
45+
4546# FrameOrSeries means either a DataFrame or a Series. E.g.
4647# `def func(a: FrameOrSeries) -> FrameOrSeries: ...` means that if a Series is passed
4748# in, either a Series or DataFrame is returned, and if a DataFrame is passed in, either
4849# a DataFrame or a Series is returned.
4950FrameOrSeries = Union ["DataFrame" , "Series" ]
51+
5052# SameFrameOrSeries is stricter and ensures that the same subclass of NDFrame always is
5153# used. E.g. `def func(a: SameFrameOrSeries) -> SameFrameOrSeries: ...` means that if a
5254# Series is passed into a function, a Series is always returned and if a DataFrame is
5355# passed in, a DataFrame is always returned.
5456SameFrameOrSeries = TypeVar ("SameFrameOrSeries" , bound = "NDFrame" )
57+
5558Axis = Union [str , int ]
5659Ordered = Optional [bool ]
5760JSONSerializable = Union [PythonScalar , List , Dict ]
You can’t perform that action at this time.
0 commit comments