<jupyter_start><jupyter_text>Inflation To compute the inflation, the library provides `inflation` method. The library supports kinds of inflation as follows:- `cumulative` - cumulative inflation- `a_mean` - arithmetic mean of inflation- `g_mean` - geometric mean of inflation- `yoy` - Year on Year inflation- `values` - raw values of inflationAnother parameter is `currency` to compute the inflation against.And the last ones are periods:- `end_period` - the period till which to compute. The default value is the latest date for the existing inflation values- `start_period` - the period till which to compute. The default value is the earliest date for the existing inflation values- `years_ago` that can be only specified if `start_period` doesn't. Corresponding `start_period` is then computed as `end_period - 12 * years_ago`<jupyter_code>lib.inflation(currency='usd', start_period='2016-1', end_period='2019-4', kind='values')
lib.inflation(currency='usd', start_period='2016-1', end_period='2019-4', kind='yoy')
lib.inflation(currency='usd', end_period='2019-4', years_ago=10, kind='yoy')<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.10577777777777778, 'fraction_numerical': 0.025777777777777778, 'mean_word_length': 6.081761006289308, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '502690', 'license': 'MIT', 'n_tokens_mistral': 340, 'n_tokens_neox': 312, 'n_words': 121, 'path': 'examples/inflation.ipynb', 'repo_name': 'VendettaPrime/yapo', 'size': '1125'}