@@ -539,14 +539,9 @@ def first_line_ends_in_dot(self):
539539 if self .doc :
540540 return self .doc .split ('\n ' )[0 ][- 1 ] == '.'
541541
542- @property
543- def deprecated_with_directive (self ):
544- return '.. deprecated:: ' in (self .summary + self .extended_summary )
545-
546542 @property
547543 def deprecated (self ):
548- return (self .name .startswith ('pandas.Panel' )
549- or self .deprecated_with_directive )
544+ return '.. deprecated:: ' in (self .summary + self .extended_summary )
550545
551546 @property
552547 def mentioned_private_classes (self ):
@@ -674,7 +669,7 @@ def get_validation_data(doc):
674669 errs .append (error ('GL07' ,
675670 correct_sections = ', ' .join (correct_order )))
676671
677- if (doc .deprecated_with_directive
672+ if (doc .deprecated
678673 and not doc .extended_summary .startswith ('.. deprecated:: ' )):
679674 errs .append (error ('GL09' ))
680675
@@ -859,9 +854,9 @@ def validate_all(prefix, ignore_deprecated=False):
859854
860855 seen [shared_code_key ] = func_name
861856
862- # functions from introspecting Series, DataFrame and Panel
857+ # functions from introspecting Series and DataFrame
863858 api_item_names = set (list (zip (* api_items ))[0 ])
864- for class_ in (pandas .Series , pandas .DataFrame , pandas . Panel ):
859+ for class_ in (pandas .Series , pandas .DataFrame ):
865860 for member in inspect .getmembers (class_ ):
866861 func_name = 'pandas.{}.{}' .format (class_ .__name__ , member [0 ])
867862 if (not member [0 ].startswith ('_' )
0 commit comments