File:US and UK enwiki views.png
US_and_UK_enwiki_views.png (551 × 455 pixels, file size: 32 KB, MIME type: image/png)
File information
Structured data
Captions
Captions
Monthly pageviews of the English Wikipedia from the US and UK
Summary
editDescriptionUS and UK enwiki views.png |
English: Monthly pageviews of the English Wikipedia from the US and UK, 2017 through early 2023 |
Date | |
Source | Own work |
Author | Sandizer |
Python code used to generate
editimport pandas as pd import requests import json import matplotlib.pyplot as plt api = 'https://wikimedia.org/api/rest_v1/metrics/pageviews/top-by-country/en.wikipedia/all-access/' headers = {'User-Agent': 'extracting about 75 statistics api calls'} views = [] for date in pd.date_range(start='2017-01', end='2023-03', freq='MS'): resp = requests.get(api + date.strftime('%Y/%m'), headers=headers).text total = 0 for country in json.loads(resp)['items'][0]['countries']: if country['country'] in ('US', 'UK'): total += country['views_ceil'] views.append((date, total)) df = pd.DataFrame(views, columns=['month', 'billions']) df = df.set_index('month')/1e9 # billions df.plot(ylim=(0, None), title="Monthly US and UK English Wikipedia direct page views") plt.show()
Licensing
editI, the copyright holder of this work, hereby publish it under the following license:
![w:en:Creative Commons](https://upload.wikimedia.org/wikipedia/commons/thumb/7/79/CC_some_rights_reserved.svg/90px-CC_some_rights_reserved.svg.png)
![attribution](https://upload.wikimedia.org/wikipedia/commons/thumb/1/11/Cc-by_new_white.svg/24px-Cc-by_new_white.svg.png)
![share alike](https://upload.wikimedia.org/wikipedia/commons/thumb/d/df/Cc-sa_white.svg/24px-Cc-sa_white.svg.png)
This file is licensed under the Creative Commons Attribution-Share Alike 4.0 International license.
- You are free:
- to share – to copy, distribute and transmit the work
- to remix – to adapt the work
- Under the following conditions:
- attribution – You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
- share alike – If you remix, transform, or build upon the material, you must distribute your contributions under the same or compatible license as the original.
File history
Click on a date/time to view the file as it appeared at that time.
Date/Time | Thumbnail | Dimensions | User | Comment | |
---|---|---|---|---|---|
current | 17:52, 22 April 2023 | ![]() | 551 × 455 (32 KB) | Sandizer (talk | contribs) | monthly |
14:14, 22 April 2023 | ![]() | 551 × 455 (31 KB) | Sandizer (talk | contribs) | Uploaded own work with UploadWizard |
You cannot overwrite this file.
File usage on Commons
There are no pages that use this file.
File usage on other wikis
The following other wikis use this file:
- Usage on meta.wikimedia.org
Metadata
This file contains additional information such as Exif metadata which may have been added by the digital camera, scanner, or software program used to create or digitize it. If the file has been modified from its original state, some details such as the timestamp may not fully reflect those of the original file. The timestamp is only as accurate as the clock in the camera, and it may be completely wrong.
Software used | |
---|---|
Horizontal resolution | 39.37 dpc |
Vertical resolution | 39.37 dpc |