We can use the collected data to determine the frequency of edits of Wikipedia articles from countries around the world. This can be done by grouping the captured data by country and counting the number of edits related to each country. Then we will sort the data and create a bar chart to see the results.
Visualizing contributor location frequency on Wikipedia
How to do it
This is a very simple task to perform with pandas. The code of the example is in 08/03_visualize_wikipedia_edits.py.
- The code begins by importing pandas and matplotlib.pyplot:
>>> import pandas as pd
>>> import matplotlib.pyplot as plt
- The data file we created in the previous recipe is already in a format that can be read directly by...