Skip to content

Instantly share code, notes, and snippets.

Avatar
🌮
eating

Nate Jones nathancooperjones

🌮
eating
View GitHub Profile
@nathancooperjones
nathancooperjones / skin_tone_slider.html
Last active Jul 14, 2020
Skin Tone Slider for the Geena Davis Institute
View skin_tone_slider.html
<!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 {
@nathancooperjones
nathancooperjones / df_to_html.py
Last active Apr 27, 2021
df_to_html - ShopRunner's open-sourced helper function to convert Pandas DataFrame's to HTML.
View df_to_html.py
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,