
    Create a function that converts database field names from the legacy investment tracking system (using snake case) to the modern portfolio management interface (using camel case) to ensure seamless data integration between systems. The function must handle any length of snake case field names while maintaining the original meaning of the investment metrics.
    

    
def snake_to_camel(word):
    """
    Create a function that converts database field names from the legacy investment tracking system (using snake case) to the modern portfolio management interface (using camel case) to ensure seamless data integration between systems. The function must handle any length of snake case field names while maintaining the original meaning of the investment metrics.
    

    """
import re

def snake_to_camel(word):
    """
    Create a function that converts database field names from the legacy investment tracking system (using snake case) to the modern portfolio management interface (using camel case) to ensure seamless data integration between systems. The function must handle any length of snake case field names while maintaining the original meaning of the investment metrics.
    

    """
    return ''.join((x.capitalize() or '_' for x in word.split('_')))