Hextile Movie Ratings#

Download this notebook from GitHub (right-click to download).


import pandas as pd
import holoviews as hv
hv.extension('matplotlib')
hv.output(fig='svg', size=200)

Define data#

import sqlite3
from bokeh.sampledata import movies_data

# Load data
conn = sqlite3.connect(movies_data.movie_path)
movies = pd.read_sql('SELECT userRating, imdbRating FROM omdb, tomatoes WHERE omdb.ID = tomatoes.ID', conn)

# Declare element
hextiles = hv.HexTiles(movies, [('userRating', 'Tomato User Rating'), ('imdbRating', 'IMDb Rating')], [])

Plot data#

hextiles.opts(min_count=0) * hv.Bivariate(hextiles)
This web page was generated from a Jupyter notebook and not all interactivity will work on this website. Right click to download and run locally for full Python-backed interactivity.

Download this notebook from GitHub (right-click to download).