Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

data_to_html-connosieurofdoom-0.0.0.1.tar.gz (3.2 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file data_to_html-connosieurofdoom-0.0.0.1.tar.gz.

File metadata

  • Download URL: data_to_html-connosieurofdoom-0.0.0.1.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.6

File hashes

Hashes for data_to_html-connosieurofdoom-0.0.0.1.tar.gz
Algorithm Hash digest
SHA256 47c776d72511f2169949fc169fd0d1d5aae97b9a8cf208c9aef080b16c5eb824
MD5 9aa8d6fdd6daede533e04f21e0f0ec7a
BLAKE2b-256 c056a690c66cba6701e81e3861d5464a58ff0e99c7174ca816ce284fc2cf8a27

See more details on using hashes here.

File details

Details for the file data_to_html_connosieurofdoom-0.0.0.1-py3-none-any.whl.

File metadata

  • Download URL: data_to_html_connosieurofdoom-0.0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 16.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.6

File hashes

Hashes for data_to_html_connosieurofdoom-0.0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0e0940d4f56a31a6ebd361fe736f150c06bd765a2b0b11cf11af0c90ab496bba
MD5 be78b2898eff3c569cd8287c02fa4b8d
BLAKE2b-256 13751288f760bba5227a6021a117aa408fd6f75d43c1776b12f8f21e111b0598

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page