@@ -5,7 +5,7 @@ import numpy.ma as np
55from pandas import datetime
66from pandas ._typing import Axes , Axis , Dtype as Dtype , FilePathOrBuffer , Level , Renamer , Column , Label , FrameOrSeries , \
77 ArrayLike , AnyArrayLike , GoogleCredentials , Scalar , ReplaceMethod , ToReplace , ReplaceValue , Frequency , AxisOption , \
8- Orientation , Function , AggregationFunction , GroupByObject , GeneralDuplicatesKeepStrategy , InterpolationMethod , NamedCorrelationMethod , \
8+ Orientation , Function , AggregationFunction , GroupByObject , GeneralDuplicatesKeepStrategy , InterpolationMethod , \
99 CorrelationMethod , SortKind , JoinType , FillMethod , ErrorsStrategy , NaSortPosition , FillValue , TimestampMethod
1010from pandas .core .accessor import CachedAccessor
1111from pandas .core .base import PandasObject
@@ -118,15 +118,15 @@ class DataFrame(NDFrame):
118118 def transpose (self , * args : Any , copy : bool = ...) -> DataFrame : ...
119119 @property
120120 def T (self ) -> DataFrame : ...
121- def query (self , expr : str , inplace : bool = ..., ** kwargs : Any ) -> DataFrame : ...
122- def eval (self , expr : str , inplace : bool = ..., ** kwargs : Any ) -> Union [np .ndarray , int , float , PandasObject ]: ...
121+ def query (self , expr : str , inplace : bool = ..., ** kwargs : Any ) -> Optional [ DataFrame ] : ...
122+ def eval (self , expr : str , inplace : bool = ..., ** kwargs : Any ) -> Union [None , np .ndarray , int , float , PandasObject ]: ...
123123 def select_dtypes (self , include : Optional [Sequence [Union [str , Dtype ]]] = ..., exclude : Optional [Sequence [Union [str , Dtype ]]] = ...) -> DataFrame : ...
124124 def insert (self , loc : int , column : Union [Column , Hashable ], value : Union [int , Series , ArrayLike ], allow_duplicates : Optional [bool ] = ...) -> None : ...
125125 def assign (self , ** kwargs : Any ) -> DataFrame : ...
126126 def lookup (self , row_labels : Sequence [Any ], col_labels : Sequence [Column ]) -> np .ndarray : ...
127127 def align (self , other : FrameOrSeries , join : JoinType = ..., axis : AxisOption = ..., level : Level = ..., copy : bool = ..., fill_value : Scalar = ..., method : Optional [FillMethod ] = ..., limit : Optional [int ] = ..., fill_axis : AxisOption = ..., broadcast_axis : AxisOption = ...) -> DataFrame : ...
128128 def reindex (self , * args : Any , ** kwargs : Any ) -> DataFrame : ...
129- def drop (self , labels : Optional [Sequence [Label ]] = ..., axis : AxisOption = ..., index : Optional [Sequence [Label ]] = ..., columns : Optional [Sequence [Label ]] = ..., level : Optional [Level ] = ..., inplace : bool = ..., errors : ErrorsStrategy = ...) -> DataFrame : ...
129+ def drop (self , labels : Optional [Sequence [Label ]] = ..., axis : AxisOption = ..., index : Optional [Sequence [Label ]] = ..., columns : Optional [Sequence [Label ]] = ..., level : Optional [Level ] = ..., inplace : bool = ..., errors : ErrorsStrategy = ...) -> Optional [ DataFrame ] : ...
130130 def rename (self , mapper : Optional [Renamer ] = ..., * , index : Optional [Renamer ] = ..., columns : Optional [Renamer ] = ..., axis : Optional [Axis ] = ..., copy : bool = ..., inplace : bool = ..., level : Optional [Level ] = ..., errors : ErrorsStrategy = ...) -> Optional [DataFrame ]: ...
131131 def fillna (self , value : FillValue = ..., method : Optional [FillMethod ] = ..., axis : Optional [Axis ] = ..., inplace : Optional [bool ] = ..., limit : int = ..., downcast : Optional [Dict [Any , Dtype ]] = ...) -> Optional [DataFrame ]: ...
132132 def replace (self , to_replace : Optional [ToReplace ] = ..., value : Optional [ReplaceValue ] = ..., inplace : bool = ..., limit : Optional [int ] = ..., regex : bool = ..., method : ReplaceMethod = ...) -> DataFrame : ...
@@ -137,7 +137,7 @@ class DataFrame(NDFrame):
137137 def isnull (self ) -> DataFrame : ...
138138 def notna (self ) -> DataFrame : ...
139139 def notnull (self ) -> DataFrame : ...
140- def dropna (self , axis : AxisOption = ..., how : DropTypes = ..., thresh : Optional [int ] = ..., subset : Optional [Any ] = ..., inplace : bool = ...) -> DataFrame : ...
140+ def dropna (self , axis : AxisOption = ..., how : DropTypes = ..., thresh : Optional [int ] = ..., subset : Optional [Any ] = ..., inplace : bool = ...) -> Optional [ DataFrame ] : ...
141141 def drop_duplicates (self , subset : Optional [Union [Hashable , Sequence [Hashable ]]] = ..., keep : GeneralDuplicatesKeepStrategy = ..., inplace : bool = ..., ignore_index : bool = ...) -> Optional [DataFrame ]: ...
142142 def duplicated (self , subset : Optional [Union [Hashable , Sequence [Hashable ]]] = ..., keep : Union [str , bool ] = ...) -> Series : ...
143143 # Parent allowed by to be None - that's the reason for override
0 commit comments