<jupyter_start><jupyter_text>Mobility: Google COVID-19 Community Mobility Reports This section describes how to use the Google mobility reports clientfrom Episuite. The main class used to download and parse the Googlemobility data is the :class:`~episuite.mobility.google.GoogleMobility`... seealso::   `Google COVID-19 Community Mobility Reports  `_      Google COVID-19 Community Mobility Reports.   Module :mod:`episuite.mobility.google`      Documentation of the :py:mod:`episuite.mobility.google` module.<jupyter_code>from matplotlib import pyplot as plt
from episuite.mobility import google<jupyter_output><empty_output><jupyter_text>Load Google mobility dataThe Episuite API for the Google mobility reports allows you to download the entire dataset or to filter by a single country by using a country/region code. We will here just download data from Brazil using the `BR` country code.The mobility reports are increasing in size every day, that's why filtering by your country code is highly recommended. If you specify the `country_region_code` while calling the `load_report()`, Episuite will filter the dataset without loading it entirely to memory.<jupyter_code>client = google.GoogleMobility()
mobility_data = client.load_report(country_region_code="BR",
                                   show_progress=True, cache=True)
mobility_data.tail(5)<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.06349206349206349, 'fraction_numerical': 0.005050505050505051, 'mean_word_length': 5.219730941704036, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '2', 'dir': 'jupyter-structured-clean-dedup', 'id': '148517', 'license': 'MIT', 'n_tokens_mistral': 381, 'n_tokens_neox': 362, 'n_words': 145, 'path': 'docs/source/mobility_google.ipynb', 'repo_name': 'perone/episuite', 'size': '1386'}