a-pandas-ex-html-view
توضیحات
View/save any Pandas DataFrame/Series as HTML, works with MultiIndex as well
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | a-pandas-ex-html-view-0.11 |
| نام | a-pandas-ex-html-view |
| نسخه کتابخانه | 0.11 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Johannes Fischer |
| ایمیل نویسنده | aulasparticularesdealemaosp@gmail.com |
| آدرس صفحه اصلی | https://github.com/hansalemaos/a_pandas_ex_html_view |
| آدرس اینترنتی | https://pypi.org/project/a-pandas-ex-html-view/ |
| مجوز | MIT |
### DataFrame / Series in your browser
```python
#Based on pypi.org/project/any-iter-to-html-table/
from a_pandas_ex_html_view import pd_add_html_view
import pandas as pd
pd_add_html_view() #this adds to new methods to pandas
df = pd.read_csv("https://github.com/pandas-dev/pandas/raw/main/doc/data/titanic.csv")
df.ds_html_view() #for whole DataFrame
df.Name.ds_html_view() #for Series
```


### For DataFrames with MultiIndex
If you create your MultiIndexed DataFrame using [a-pandas-ex-plode-tool · PyPI](https://pypi.org/project/a-pandas-ex-plode-tool/)
a_pandas_ex_html_view will format the DataFrame in the prettiest way possible :)

```python
from a_pandas_ex_plode_tool import pd_add_explode_tools
pd_add_explode_tools()
data = {
"glossary": {
"title": "example glossary",
"GlossDiv": {
"title": "S",
"GlossList": {
"GlossEntry": {
"ID": "SGML",
"SortAs": "SGML",
"GlossTerm": "Standard Generalized Markup Language",
"Acronym": "SGML",
"Abbrev": "ISO 8879:1986",
"GlossDef": {
"para": "A meta-markup language, used to create markup languages such as DocBook.",
"GlossSeeAlso": ["GML", "XML"],
},
"GlossSee": "markup",
}
},
},
}
}
df = pd.Q_AnyNestedIterable_2df(data)
df.ds_html_view()
#if you don't want to open it in browser, just save it to your HDD:
df.ds_html_view('f:\\testhtml.html')
```
نیازمندی
| مقدار | نام |
|---|---|
| - | a-pandas-ex-df-to-string |
| - | a-pandas-ex-plode-tool |
| - | pandas |
| - | regex |
نحوه نصب
نصب پکیج whl a-pandas-ex-html-view-0.11:
pip install a-pandas-ex-html-view.whl
نصب پکیج tar.gz a-pandas-ex-html-view-0.11:
pip install a-pandas-ex-html-view.tar.gz