# Converts the output of some inspect functions to a DataFrame
## pip install a-pandas-ex-inspect2df
```python
Convert the attributes of an object into a pandas DataFrame with information about each attribute.
Args:
obj: An object to inspect.
Returns:
A pandas DataFrame with the following columns:
- aa_attrb_name: The name of the attribute.
- aa_signature: The signature of the attribute.
- aa_attrb: The attribute itself.
- aa_doc: The docstring of the attribute.
- aa_annotations: The annotations of the attribute.
- aa_absfile: The absolute path of the file containing the attribute.
- aa_closurevars: The closure variables of the attribute.
- aa_unwrapped: The unwrapped attribute.
Raises:
None.
```
```python
from a_pandas_ex_inspect2df import inspect2df
import pandas as pd
print(inspect2df(pd)[:25].to_string(max_colwidth=30))
aa_attrb_name aa_signature aa_attrb aa_doc aa_annotations aa_absfile aa_closurevars aa_unwrapped
0 ArrowDtype (pyarrow_dtype: 'pa.DataTy... <class 'pandas.core.arrays... An ExtensionDtype for PyAr... {} c:\programdata\anaconda3\e... <NA> <class 'pandas.core.arrays...
1 BooleanDtype () <class 'pandas.core.arrays... Extension dtype for boolea... {} c:\programdata\anaconda3\e... <NA> <class 'pandas.core.arrays...
2 Categorical (values, categories=None, ... <class 'pandas.core.arrays... Represent a categorical va... {'_dtype': 'CategoricalDty... c:\programdata\anaconda3\e... <NA> <class 'pandas.core.arrays...
3 CategoricalDtype (categories=None, ordered:... <class 'pandas.core.dtypes... Type for categorical data ... {'type': 'type[Categorical... c:\programdata\anaconda3\e... <NA> <class 'pandas.core.dtypes...
4 CategoricalIndex (data=None, categories=Non... <class 'pandas.core.indexe... Index based on an underlyi... {'codes': 'np.ndarray', 'c... c:\programdata\anaconda3\e... <NA> <class 'pandas.core.indexe...
5 DataFrame (data=None, index: 'Axes |... <class 'pandas.core.frame.... Two-dimensional, size-muta... {'_accessors': 'set[str]',... c:\programdata\anaconda3\e... <NA> <class 'pandas.core.frame....
6 DateOffset <NA> <class 'pandas._libs.tslib... Standard kind of date incr... {} c:\programdata\anaconda3\e... <NA> <class 'pandas._libs.tslib...
7 DatetimeIndex (data=None, freq: 'Frequen... <class 'pandas.core.indexe... Immutable ndarray-like of ... {'_data': 'DatetimeArray',... c:\programdata\anaconda3\e... <NA> <class 'pandas.core.indexe...
8 DatetimeTZDtype (unit: 'str_type | Datetim... <class 'pandas.core.dtypes... An ExtensionDtype for time... {'type': 'type[Timestamp]'... c:\programdata\anaconda3\e... <NA> <class 'pandas.core.dtypes...
9 ExcelFile (path_or_buffer, engine: '... <class 'pandas.io.excel._b... Class for parsing tabular ... {'_engines': 'Mapping[str,... c:\programdata\anaconda3\e... <NA> <class 'pandas.io.excel._b...
10 ExcelWriter (path: 'FilePath | WriteEx... <class 'pandas.io.excel._b... Class for writing DataFram... {'_engine': 'str', '_suppo... c:\programdata\anaconda3\e... <NA> <class 'pandas.io.excel._b...
11 Flags (obj, *, allows_duplicate_... <class 'pandas.core.flags.... Flags that apply to pandas... {} c:\programdata\anaconda3\e... <NA> <class 'pandas.core.flags....
12 Float32Dtype () <class 'pandas.core.arrays... An ExtensionDtype for floa... {} c:\programdata\anaconda3\e... <NA> <class 'pandas.core.arrays...
13 Float64Dtype () <class 'pandas.core.arrays... An ExtensionDtype for floa... {} c:\programdata\anaconda3\e... <NA> <class 'pandas.core.arrays...
14 Grouper (*args, **kwargs) <class 'pandas.core.groupb... A Grouper allows the user ... {'sort': 'bool', 'dropna':... c:\programdata\anaconda3\e... <NA> <class 'pandas.core.groupb...
15 HDFStore (path, mode: 'str' = 'a', ... <class 'pandas.io.pytables... Dict-like IO interface for... {'_handle': 'File | None',... c:\programdata\anaconda3\e... <NA> <class 'pandas.io.pytables...
16 Index (data=None, dtype=None, co... <class 'pandas.core.indexe... Immutable sequence used fo... {'_typ': 'str', '_data': '... c:\programdata\anaconda3\e... <NA> <class 'pandas.core.indexe...
17 IndexSlice <NA> <pandas.core.indexing._Ind... Create an object to more e... <NA> <NA> <NA> <pandas.core.indexing._Ind...
18 Int16Dtype () <class 'pandas.core.arrays... An ExtensionDtype for int1... {} c:\programdata\anaconda3\e... <NA> <class 'pandas.core.arrays...
19 Int32Dtype () <class 'pandas.core.arrays... An ExtensionDtype for int3... {} c:\programdata\anaconda3\e... <NA> <class 'pandas.core.arrays...
20 Int64Dtype () <class 'pandas.core.arrays... An ExtensionDtype for int6... {} c:\programdata\anaconda3\e... <NA> <class 'pandas.core.arrays...
21 Int8Dtype () <class 'pandas.core.arrays... An ExtensionDtype for int8... {} c:\programdata\anaconda3\e... <NA> <class 'pandas.core.arrays...
22 Interval <NA> <class 'pandas._libs.inter... Immutable object implement... {} c:\programdata\anaconda3\e... <NA> <class 'pandas._libs.inter...
23 IntervalDtype (subtype=None, closed: 'st... <class 'pandas.core.dtypes... An ExtensionDtype for Inte... {'kind': 'str_type', '_cac... c:\programdata\anaconda3\e... <NA> <class 'pandas.core.dtypes...
24 IntervalIndex (data, closed=None, dtype:... <class 'pandas.core.indexe... Immutable index of interva... {'closed': 'IntervalClosed... c:\programdata\anaconda3\e... <NA> <class 'pandas.core.indexe...
```
Raw data
{
"_id": null,
"home_page": "https://github.com/hansalemaos/a_pandas_ex_inspect2df",
"name": "a-pandas-ex-inspect2df",
"maintainer": "",
"docs_url": null,
"requires_python": "",
"maintainer_email": "",
"keywords": "pandas,inspect",
"author": "Johannes Fischer",
"author_email": "aulasparticularesdealemaosp@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/29/df/56edb4f014d1093e4c072e1e89cdcc95b2c01bbdef6c7b1f321a9134c7d7/a_pandas_ex_inspect2df-0.10.tar.gz",
"platform": null,
"description": "# Converts the output of some inspect functions to a DataFrame\r\n\r\n## pip install a-pandas-ex-inspect2df\r\n\r\n\r\n```python\r\n Convert the attributes of an object into a pandas DataFrame with information about each attribute.\r\n\r\n Args:\r\n obj: An object to inspect.\r\n\r\n Returns:\r\n A pandas DataFrame with the following columns:\r\n - aa_attrb_name: The name of the attribute.\r\n - aa_signature: The signature of the attribute.\r\n - aa_attrb: The attribute itself.\r\n - aa_doc: The docstring of the attribute.\r\n - aa_annotations: The annotations of the attribute.\r\n - aa_absfile: The absolute path of the file containing the attribute.\r\n - aa_closurevars: The closure variables of the attribute.\r\n - aa_unwrapped: The unwrapped attribute.\r\n\r\n Raises:\r\n None.\r\n```\r\n\r\n\r\n```python\r\n\r\nfrom a_pandas_ex_inspect2df import inspect2df\r\nimport pandas as pd\r\nprint(inspect2df(pd)[:25].to_string(max_colwidth=30))\r\n aa_attrb_name aa_signature aa_attrb aa_doc aa_annotations aa_absfile aa_closurevars aa_unwrapped\r\n0 ArrowDtype (pyarrow_dtype: 'pa.DataTy... <class 'pandas.core.arrays... An ExtensionDtype for PyAr... {} c:\\programdata\\anaconda3\\e... <NA> <class 'pandas.core.arrays...\r\n1 BooleanDtype () <class 'pandas.core.arrays... Extension dtype for boolea... {} c:\\programdata\\anaconda3\\e... <NA> <class 'pandas.core.arrays...\r\n2 Categorical (values, categories=None, ... <class 'pandas.core.arrays... Represent a categorical va... {'_dtype': 'CategoricalDty... c:\\programdata\\anaconda3\\e... <NA> <class 'pandas.core.arrays...\r\n3 CategoricalDtype (categories=None, ordered:... <class 'pandas.core.dtypes... Type for categorical data ... {'type': 'type[Categorical... c:\\programdata\\anaconda3\\e... <NA> <class 'pandas.core.dtypes...\r\n4 CategoricalIndex (data=None, categories=Non... <class 'pandas.core.indexe... Index based on an underlyi... {'codes': 'np.ndarray', 'c... c:\\programdata\\anaconda3\\e... <NA> <class 'pandas.core.indexe...\r\n5 DataFrame (data=None, index: 'Axes |... <class 'pandas.core.frame.... Two-dimensional, size-muta... {'_accessors': 'set[str]',... c:\\programdata\\anaconda3\\e... <NA> <class 'pandas.core.frame....\r\n6 DateOffset <NA> <class 'pandas._libs.tslib... Standard kind of date incr... {} c:\\programdata\\anaconda3\\e... <NA> <class 'pandas._libs.tslib...\r\n7 DatetimeIndex (data=None, freq: 'Frequen... <class 'pandas.core.indexe... Immutable ndarray-like of ... {'_data': 'DatetimeArray',... c:\\programdata\\anaconda3\\e... <NA> <class 'pandas.core.indexe...\r\n8 DatetimeTZDtype (unit: 'str_type | Datetim... <class 'pandas.core.dtypes... An ExtensionDtype for time... {'type': 'type[Timestamp]'... c:\\programdata\\anaconda3\\e... <NA> <class 'pandas.core.dtypes...\r\n9 ExcelFile (path_or_buffer, engine: '... <class 'pandas.io.excel._b... Class for parsing tabular ... {'_engines': 'Mapping[str,... c:\\programdata\\anaconda3\\e... <NA> <class 'pandas.io.excel._b...\r\n10 ExcelWriter (path: 'FilePath | WriteEx... <class 'pandas.io.excel._b... Class for writing DataFram... {'_engine': 'str', '_suppo... c:\\programdata\\anaconda3\\e... <NA> <class 'pandas.io.excel._b...\r\n11 Flags (obj, *, allows_duplicate_... <class 'pandas.core.flags.... Flags that apply to pandas... {} c:\\programdata\\anaconda3\\e... <NA> <class 'pandas.core.flags....\r\n12 Float32Dtype () <class 'pandas.core.arrays... An ExtensionDtype for floa... {} c:\\programdata\\anaconda3\\e... <NA> <class 'pandas.core.arrays...\r\n13 Float64Dtype () <class 'pandas.core.arrays... An ExtensionDtype for floa... {} c:\\programdata\\anaconda3\\e... <NA> <class 'pandas.core.arrays...\r\n14 Grouper (*args, **kwargs) <class 'pandas.core.groupb... A Grouper allows the user ... {'sort': 'bool', 'dropna':... c:\\programdata\\anaconda3\\e... <NA> <class 'pandas.core.groupb...\r\n15 HDFStore (path, mode: 'str' = 'a', ... <class 'pandas.io.pytables... Dict-like IO interface for... {'_handle': 'File | None',... c:\\programdata\\anaconda3\\e... <NA> <class 'pandas.io.pytables...\r\n16 Index (data=None, dtype=None, co... <class 'pandas.core.indexe... Immutable sequence used fo... {'_typ': 'str', '_data': '... c:\\programdata\\anaconda3\\e... <NA> <class 'pandas.core.indexe...\r\n17 IndexSlice <NA> <pandas.core.indexing._Ind... Create an object to more e... <NA> <NA> <NA> <pandas.core.indexing._Ind...\r\n18 Int16Dtype () <class 'pandas.core.arrays... An ExtensionDtype for int1... {} c:\\programdata\\anaconda3\\e... <NA> <class 'pandas.core.arrays...\r\n19 Int32Dtype () <class 'pandas.core.arrays... An ExtensionDtype for int3... {} c:\\programdata\\anaconda3\\e... <NA> <class 'pandas.core.arrays...\r\n20 Int64Dtype () <class 'pandas.core.arrays... An ExtensionDtype for int6... {} c:\\programdata\\anaconda3\\e... <NA> <class 'pandas.core.arrays...\r\n21 Int8Dtype () <class 'pandas.core.arrays... An ExtensionDtype for int8... {} c:\\programdata\\anaconda3\\e... <NA> <class 'pandas.core.arrays...\r\n22 Interval <NA> <class 'pandas._libs.inter... Immutable object implement... {} c:\\programdata\\anaconda3\\e... <NA> <class 'pandas._libs.inter...\r\n23 IntervalDtype (subtype=None, closed: 'st... <class 'pandas.core.dtypes... An ExtensionDtype for Inte... {'kind': 'str_type', '_cac... c:\\programdata\\anaconda3\\e... <NA> <class 'pandas.core.dtypes...\r\n24 IntervalIndex (data, closed=None, dtype:... <class 'pandas.core.indexe... Immutable index of interva... {'closed': 'IntervalClosed... c:\\programdata\\anaconda3\\e... <NA> <class 'pandas.core.indexe...\r\n\r\n```\r\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Converts the output of some inspect functions to a DataFrame",
"version": "0.10",
"split_keywords": [
"pandas",
"inspect"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "a94cdfc7c2a9fe09c5fa2947f0569c2af5e532609ba1008d64c529eb1af7091b",
"md5": "6830e5fc426effeeb5eab094046872d2",
"sha256": "44e2263f08f4998d57be0704df51ef7787ad3800de25d72592dc83d652b1c871"
},
"downloads": -1,
"filename": "a_pandas_ex_inspect2df-0.10-py3-none-any.whl",
"has_sig": false,
"md5_digest": "6830e5fc426effeeb5eab094046872d2",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 8378,
"upload_time": "2023-04-21T02:13:45",
"upload_time_iso_8601": "2023-04-21T02:13:45.307424Z",
"url": "https://files.pythonhosted.org/packages/a9/4c/dfc7c2a9fe09c5fa2947f0569c2af5e532609ba1008d64c529eb1af7091b/a_pandas_ex_inspect2df-0.10-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "29df56edb4f014d1093e4c072e1e89cdcc95b2c01bbdef6c7b1f321a9134c7d7",
"md5": "e5411fa8061e26b1bcffc54eb3b5a3ed",
"sha256": "542bd16edcd4b3d98cbc16de05325a7f0bbfadc405b2a0ed23905cf54abe52b0"
},
"downloads": -1,
"filename": "a_pandas_ex_inspect2df-0.10.tar.gz",
"has_sig": false,
"md5_digest": "e5411fa8061e26b1bcffc54eb3b5a3ed",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 5655,
"upload_time": "2023-04-21T02:13:47",
"upload_time_iso_8601": "2023-04-21T02:13:47.444868Z",
"url": "https://files.pythonhosted.org/packages/29/df/56edb4f014d1093e4c072e1e89cdcc95b2c01bbdef6c7b1f321a9134c7d7/a_pandas_ex_inspect2df-0.10.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-04-21 02:13:47",
"github": true,
"gitlab": false,
"bitbucket": false,
"github_user": "hansalemaos",
"github_project": "a_pandas_ex_inspect2df",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"requirements": [],
"lcname": "a-pandas-ex-inspect2df"
}