Skip to content

Instantly share code, notes, and snippets.

View nathancooperjones's full-sized avatar
🌮
eating

Nate Jones nathancooperjones

🌮
eating
View GitHub Profile
@nathancooperjones
nathancooperjones / df_to_html.py
Last active February 17, 2023 04:04
df_to_html - ShopRunner's open-sourced helper function to convert Pandas DataFrame's to HTML.
import pandas as pd
def df_to_html(df: pd.DataFrame,
image_cols: List[str] = [],
hyperlink_cols: List[str] = [],
html_tags: Dict[str, Union[str, List[str]]] = dict(),
transpose: bool = False,
image_width: Optional[int] = None,
max_num_rows: int = 200,
@nathancooperjones
nathancooperjones / skin_tone_slider.html
Last active July 14, 2020 04:08
Skin Tone Slider for the Geena Davis Institute
<!DOCTYPE html>
<html>
<head>
<title>Skin Tone Slider</title>
<meta name="viewport" content="width=device-width, height=device-height, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<style>
:root {
--skin-tone:#DB8E72; /* default skin tone color */
}
html {