Source code for vivainsights.us_to_space

# --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See LICENSE.txt in the project root for license information.
# --------------------------------------------------------------------------------------------
"""
Description
-----------
The function replaces underscores with spaces in a given string.

:param string: A string that may contain underscores that need to be replaced with spaces
:return: The function `us_to_space` takes a string as input and replaces all underscores with spaces
using the `replace` method. It then returns the modified string with spaces instead of underscores.

Examples
--------
>>> us_to_space("Meeting_and_call_hours_with_manager_1_1")
"""
[docs] def us_to_space(string): return string.replace("_", " ")