Convert Dataframe to html elements
Project description
data_to_html
Library to convert pandas Dataframes to different html elements
Table:
Input:
1. Pandas Dataframe (df): The dataframe containing the data to be converted to html table (Required),
2. column order (col): A list item containing the column names of the dataframe in the order in which they are to be displayed. (Default: None (Returns the columns in the order as in the dataFrame)) | (Optional)
3. The rest is same as pandas to_html: (Refer link)[https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.to_html.html]
Ouput:
1. Returns an html formatted table from the dataframe
Sample:
dtl = table(dtl)
Select:
Input:
1. Pandas DataFrame (df): The data frame to be converted to html Select | (Required)
2. text (text): Column to be displayed between the option tage | (Required)
3. value (value): Column for the value attribute in the option tag | (Required)
4. id (id): Value for the id attribute in the select tag | (Optional) | (Default None)
5. classes (classes): Values for the classes attribute for html| Type : List |(Optional) ! (Default None)
6. placeholder (placeholder): Value for placeholder attribute | (Optional) | (Default None)
7. additional_attribute: Any additional attributes | (Optional) | (Default "")
8. multiple: Optional | Default False
9. onchange : Optional | Default None
Output:
1. A html format select statement with the options as the column values of the dataframes
dtl = select(dtl, text = "col1", value = "col2", id = "id", classes = ["class1", "class2"], placeholder="data-placeholder")
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for data_to_html-connosieurofdoom-0.0.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 47c776d72511f2169949fc169fd0d1d5aae97b9a8cf208c9aef080b16c5eb824 |
|
MD5 | 9aa8d6fdd6daede533e04f21e0f0ec7a |
|
BLAKE2b-256 | c056a690c66cba6701e81e3861d5464a58ff0e99c7174ca816ce284fc2cf8a27 |
Close
Hashes for data_to_html_connosieurofdoom-0.0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0e0940d4f56a31a6ebd361fe736f150c06bd765a2b0b11cf11af0c90ab496bba |
|
MD5 | be78b2898eff3c569cd8287c02fa4b8d |
|
BLAKE2b-256 | 13751288f760bba5227a6021a117aa408fd6f75d43c1776b12f8f21e111b0598 |