Views by category and device

EasyTikTokmergepivot_tablecrosstab· 10 XP

The content team wants to see whether some video categories are watched more on one kind of phone.

Join views.csv to videos.csv and store a grid of the number of views with one row per video category and one column per device.

Expected answer

Store your answer in result.

Hints, the later steps and the answer come with Pro.

import pandas as pd

views = pd.read_csv("views.csv")
videos = pd.read_csv("videos.csv")
result = ...