def _calculate_singles(row):
    """    
    Returns:
        The number of singles by a player as an int 
        based on the following formula: 

        1B = H - 2B - 3B - HR
    """
    singles = row['H'] - row['2B'] - row['3B'] - row['HR']
    return singles