def apply_function_elementwise_series(ser, func):
    """Apply a function on a row/column basis of a DataFrame.
    
    Args:
        ser (pd.Series): Series.
        func (function): The function to apply.
    
    Returns:
        pd.Series: Series with the applied function.
    
    Examples:
        >>> df = pd.DataFrame(np.array(range(12)).reshape(4, 3), columns=list('abc'))
        >>> ser = df['b']
        >>> f = lambda x: '%.1f' % x
        >>> apply_function_elementwise_series(ser, f)
        0     1.0
        1     4.0
        2     7.0
        3    10.0
        Name: b, dtype: object
    """
    return ser.map(func)