🚩 Image in tables
Submitted by dataprofessor
Summary
Transform URLs into images in your dataframes
Functions
table_with_images
Generate the HTML of a table with images rendered in it.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
df |
DataFrame
|
Original dataframe |
required |
url_columns |
Iterable
|
Column in df which contains URLs |
required |
Returns:
Name | Type | Description |
---|---|---|
table_html |
str
|
HTML of the table with images |
Source code in src/streamlit_extras/image_in_tables/__init__.py
Import:
- You should add this to the top of your .py file