File tree 1 file changed +3
-0
lines changed
1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change 42
42
43
43
Dtype = Union [str , np .dtype , "ExtensionDtype" ]
44
44
FilePathOrBuffer = Union [str , Path , IO [AnyStr ]]
45
+
45
46
# FrameOrSeries means either a DataFrame or a Series. E.g.
46
47
# `def func(a: FrameOrSeries) -> FrameOrSeries: ...` means that if a Series is passed
47
48
# in, either a Series or DataFrame is returned, and if a DataFrame is passed in, either
48
49
# a DataFrame or a Series is returned.
49
50
FrameOrSeries = Union ["DataFrame" , "Series" ]
51
+
50
52
# SameFrameOrSeries is stricter and ensures that the same subclass of NDFrame always is
51
53
# used. E.g. `def func(a: SameFrameOrSeries) -> SameFrameOrSeries: ...` means that if a
52
54
# Series is passed into a function, a Series is always returned and if a DataFrame is
53
55
# passed in, a DataFrame is always returned.
54
56
SameFrameOrSeries = TypeVar ("SameFrameOrSeries" , bound = "NDFrame" )
57
+
55
58
Axis = Union [str , int ]
56
59
Ordered = Optional [bool ]
57
60
JSONSerializable = Union [PythonScalar , List , Dict ]
You can’t perform that action at this time.
0 commit comments