input: Write a function to compute the average salary of people from a dataset stored in a CSV file named 'salary.csv'. The function should return the average salary as a floating-point number. If the dataset is empty, the function should return 0.0.
  
  ### Input:
  salary.csv:
  name, salary
  John, 1000
  Sara, 2000
  Alice, 3000
  
  ### Output:
  import csv
  
  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:
              total += int(row[1])
              count += 1
      
      if count == 0:
          return 0.0
      
      return total / count
  
  average_salary = get_average_salary('salary.csv')
  print('Average Salary: ', average_salary)
  
  assert get_average_salary('salary.csv') == 2000.0
  assert get_average_salary('empty_salary.csv') == 0.0
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:
              total += int(row[1])
              count += 1
      
      if count == 0:
          return 0.0
      
      return total / count