This must be easy, but I am not able to get this dataframe in the correct form.
df = pd.read_json('https://wikimedia.org/api/rest_v1/metrics/pageviews/per-article/en.wikipedia.org/all-access/user/Python_(programming_language)/daily/20210101/20210501')
The expected columns are:
project, article,granularity,timestamp,access,agent,user,views