def read_customers_lost_by_country(): this_table = Table(connection, q.query_customers_lost_by_country) columns = ['Country', 'Number of Customers Lost'] html_rep = this_table.get_html_rep(columns) return html_rep
def read_sales_by_genre(): this_table = Table(connection, q.query_sales_by_movie) columns = ['Category', 'Total Sales'] html_rep = this_table.get_html_rep(columns) return html_rep
def read_films_in_inventory_most_rented(): this_table = Table(connection, q.query_top_rented_films) columns = ['Film ID', 'Title', 'Release Year', 'Number of Rentals'] html_rep = this_table.get_html_rep(columns) return html_rep