### Install world_bank_data Package (Bash) Source: https://github.com/mwouts/world_bank_data/blob/main/README.md Installs or updates the `world_bank_data` Python package using pip. This command ensures you have the latest version of the library for accessing World Bank data. ```bash pip install world_bank_data --upgrade ``` -------------------------------- ### Get Indicator Series with Options (Python) Source: https://github.com/mwouts/world_bank_data/blob/main/README.md Retrieves indicator series values with advanced options. `simplify_index=True` removes single-value dimensions, and `id_or_value='id'` changes the index to codes instead of labels. ```python wb.get_series('SP.POP.TOTL', date='2016', id_or_value='id', simplify_index=True) ``` -------------------------------- ### Get Indicator Series Values (Python) Source: https://github.com/mwouts/world_bank_data/blob/main/README.md Retrieves the time-series values for a single World Bank indicator. It accepts arguments like `mrv` (most recent values) and `date` (specific year or range) to filter the data. ```python wb.get_series('SP.POP.TOTL', mrv=1) ``` -------------------------------- ### Configure HTTP Proxy for World Bank Data Access (Python) Source: https://github.com/mwouts/world_bank_data/blob/main/README.md Illustrates how to configure an HTTP proxy globally for the World Bank data package using `wb.options.proxies`. This is useful for users behind corporate proxies. ```Python wb.options.proxies = {'http': 'http://example.com:3128'} ``` -------------------------------- ### Retrieve World Bank Indicators (Python) Source: https://github.com/mwouts/world_bank_data/blob/main/README.md Fetches a list of available indicators from the World Bank. It supports filtering by specific topics or sources using their respective IDs. If no arguments are provided, it returns descriptions for all available indicators. ```python wb.get_indicators(topic=3, source=2) ``` -------------------------------- ### Import Libraries and Configure Pandas (Python) Source: https://github.com/mwouts/world_bank_data/blob/main/README.md Imports the necessary `pandas` and `world_bank_data` libraries. It also sets a pandas display option to show more rows, which is useful when exploring large datasets returned by the API. ```python import pandas as pd import world_bank_data as wb pd.set_option('display.max_rows', 6) ``` -------------------------------- ### Retrieve World Bank Sources (Python) Source: https://github.com/mwouts/world_bank_data/blob/main/README.md Fetches a list of data sources available through the World Bank API. This includes information about the origin of the data, which can be useful for filtering indicators. ```python wb.get_sources() ``` -------------------------------- ### Search World Bank Indicators (Python) Source: https://github.com/mwouts/world_bank_data/blob/main/README.md Searches for indicators based on a keyword. This function helps users find relevant indicators when they don't know the exact indicator code or name. ```python wb.search_indicators('mathematics') ``` -------------------------------- ### Reset Default Language to English (Python) Source: https://github.com/mwouts/world_bank_data/blob/main/README.md Shows how to reset the default language setting back to English for World Bank data retrieval using `wb.options.language = 'en'`. ```Python wb.options.language = 'en' ``` -------------------------------- ### Retrieve World Bank Topics (Python) Source: https://github.com/mwouts/world_bank_data/blob/main/README.md Fetches a list of available topics from the World Bank API. This function is essential for understanding the categorization of indicators and for using topic IDs in subsequent queries. ```python wb.get_topics() ``` -------------------------------- ### Set Default Language for World Bank Data API (Python) Source: https://github.com/mwouts/world_bank_data/blob/main/README.md Demonstrates how to set the default language for retrieving World Bank data using the `wb.options.language` attribute. This affects the language of country and indicator descriptions. ```Python wb.options.language = 'vi' wb.get_indicators('SP.POP.TOTL') ``` -------------------------------- ### Retrieve World Bank Countries (Python) Source: https://github.com/mwouts/world_bank_data/blob/main/README.md Fetches a list of countries recognized by the World Bank. This data can be used to filter indicator results by country or to understand country classifications. ```python wb.get_countries() ``` -------------------------------- ### Retrieve Country Classifiers (Python) Source: https://github.com/mwouts/world_bank_data/blob/main/README.md Retrieves additional country classification data, such as regions, income levels, and lending types. These functions provide context for country data and can be used for filtering or grouping. ```python wb.get_regions() wb.get_incomelevels() wb.get_lendingtypes() ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.