input: Write a function to compute the average salary of people from a CSV file containing a list of names and their respective salaries. The function should return the computed average as a float. If the file is empty or contains no valid salary entries, the function should return 0.0.
  
  def get_average_salary(filename):
    total = 0
    count = 0
  
    with open(filename, 'r') as csvfile:
      csvreader = csv.reader(csvfile)
      next(csvreader) # skip header
  
      # loop through the CSV rows
      for row in csvreader:
        if len(row) > 1 and row[1].isdigit():
          total += int(row[1])
          count += 1
    
    return total / count if count else 0.0
  
  assert get_average_salary('salary.csv') == 2000.0
  assert get_average_salary('empty_salary.csv') == 0.0
  assert get_average_salary('salary_with_invalid_entries.csv') == 1500.0  # assuming only valid entries are considered
  assert get_average_salary('one_entry.csv') == 5000.0  # assuming one entry with a salary of 5000
  assert get_average_salary('mixed_entries.csv') == 2000.0  # assuming invalid entries are ignored and valid entries sum to 4000 for 2 entries
output: def get_average_salary(filename):
    total = 0
    count = 0
  
    with open(filename, 'r') as csvfile:
      csvreader = csv.reader(csvfile)
      next(csvreader) # skip header
  
      # loop through the CSV rows
      for row in csvreader:
        if len(row) > 1 and row[1].isdigit():
          total += int(row[1])
          count += 1
    
    return total / count if count else 0.0