Package: a-pandas-ex-inspect2df
Converts the output of some inspect functions to a DataFramepip install a-pandas-ex-inspect2dfConverttheattributesofanobjectintoapandasDataFramewithinformationabouteachattribute.Args:obj:Anobjecttoinspect.Returns:ApandasDataFramewiththefollowingcolumns:-aa_attrb_name:Thenameoftheattribute.-aa_signature:Thesignatureoftheattribute.-aa_attrb:Theattributeitself.-aa_doc:Thedocstringoftheattribute.-aa_annotations:Theannotationsoftheattribute.-aa_absfile:Theabsolutepathofthefilecontainingtheattribute.-aa_closurevars:Theclosurevariablesoftheattribute.-aa_unwrapped:Theunwrappedattribute.Raises:None.froma_pandas_ex_inspect2dfimportinspect2dfimportpandasaspdprint(inspect2df(pd)[:25].to_string(max_colwidth=30))aa_attrb_nameaa_signatureaa_attrbaa_docaa_annotationsaa_absfileaa_closurevarsaa_unwrapped0ArrowDtype(pyarrow_dtype:'pa.DataTy...  <class 'pandas.core.arrays...AnExtensionDtypeforPyAr...{}c:\programdata\anaconda3\e...<NA><class'pandas.core.arrays...1BooleanDtype()<class'pandas.core.arrays...Extensiondtypeforboolea...{}c:\programdata\anaconda3\e...<NA><class'pandas.core.arrays...2Categorical(values,categories=None,...<class'pandas.core.arrays...Representacategoricalva...{'_dtype':'CategoricalDty...  c:\programdata\anaconda3\e...           <NA>  <class 'pandas.core.arrays...3CategoricalDtype(categories=None,ordered:...<class'pandas.core.dtypes...Typeforcategoricaldata...{'type':'type[Categorical...  c:\programdata\anaconda3\e...           <NA>  <class 'pandas.core.dtypes...4CategoricalIndex(data=None,categories=Non...<class'pandas.core.indexe...Indexbasedonanunderlyi...{'codes':'np.ndarray','c...  c:\programdata\anaconda3\e...           <NA>  <class 'pandas.core.indexe...5DataFrame(data=None,index:'Axes |...  <class 'pandas.core.frame....Two-dimensional,size-muta...{'_accessors':'set[str]',...c:\programdata\anaconda3\e...<NA><class'pandas.core.frame....6DateOffset<NA><class'pandas._libs.tslib...Standardkindofdateincr...{}c:\programdata\anaconda3\e...<NA><class'pandas._libs.tslib...7DatetimeIndex(data=None,freq:'Frequen...  <class 'pandas.core.indexe...Immutablendarray-likeof...{'_data':'DatetimeArray',...c:\programdata\anaconda3\e...<NA><class'pandas.core.indexe...8DatetimeTZDtype(unit:'str_type | Datetim...  <class 'pandas.core.dtypes...AnExtensionDtypefortime...{'type':'type[Timestamp]'...c:\programdata\anaconda3\e...<NA><class'pandas.core.dtypes...9ExcelFile(path_or_buffer,engine:'...  <class 'pandas.io.excel._b...Classforparsingtabular...{'_engines':'Mapping[str,...  c:\programdata\anaconda3\e...           <NA>  <class 'pandas.io.excel._b...10ExcelWriter(path:'FilePath | WriteEx...  <class 'pandas.io.excel._b...ClassforwritingDataFram...{'_engine':'str','_suppo...  c:\programdata\anaconda3\e...           <NA>  <class 'pandas.io.excel._b...11Flags(obj,*,allows_duplicate_...<class'pandas.core.flags....Flagsthatapplytopandas...{}c:\programdata\anaconda3\e...<NA><class'pandas.core.flags....12Float32Dtype()<class'pandas.core.arrays...AnExtensionDtypeforfloa...{}c:\programdata\anaconda3\e...<NA><class'pandas.core.arrays...13Float64Dtype()<class'pandas.core.arrays...AnExtensionDtypeforfloa...{}c:\programdata\anaconda3\e...<NA><class'pandas.core.arrays...14Grouper(*args,**kwargs)<class'pandas.core.groupb...AGrouperallowstheuser...{'sort':'bool','dropna':...c:\programdata\anaconda3\e...<NA><class'pandas.core.groupb...15HDFStore(path,mode:'str'='a',...<class'pandas.io.pytables...Dict-likeIOinterfacefor...{'_handle':'File | None',...c:\programdata\anaconda3\e...<NA><class'pandas.io.pytables...16Index(data=None,dtype=None,co...<class'pandas.core.indexe...Immutablesequenceusedfo...{'_typ':'str','_data':'...  c:\programdata\anaconda3\e...           <NA>  <class 'pandas.core.indexe...17IndexSlice<NA><pandas.core.indexing._Ind...Createanobjecttomoree...<NA><NA><NA><pandas.core.indexing._Ind...18Int16Dtype()<class'pandas.core.arrays...AnExtensionDtypeforint1...{}c:\programdata\anaconda3\e...<NA><class'pandas.core.arrays...19Int32Dtype()<class'pandas.core.arrays...AnExtensionDtypeforint3...{}c:\programdata\anaconda3\e...<NA><class'pandas.core.arrays...20Int64Dtype()<class'pandas.core.arrays...AnExtensionDtypeforint6...{}c:\programdata\anaconda3\e...<NA><class'pandas.core.arrays...21Int8Dtype()<class'pandas.core.arrays...AnExtensionDtypeforint8...{}c:\programdata\anaconda3\e...<NA><class'pandas.core.arrays...22Interval<NA><class'pandas._libs.inter...Immutableobjectimplement...{}c:\programdata\anaconda3\e...<NA><class'pandas._libs.inter...23IntervalDtype(subtype=None,closed:'st...  <class 'pandas.core.dtypes...AnExtensionDtypeforInte...{'kind':'str_type','_cac...  c:\programdata\anaconda3\e...           <NA>  <class 'pandas.core.dtypes...24IntervalIndex(data,closed=None,dtype:...<class'pandas.core.indexe...Immutableindexofinterva...{'closed':'IntervalClosed...  c:\programdata\anaconda3\e...           <NA>  <class 'pandas.core.indexe...