input: Write a python function to extract data from the given URL with the given query parameters and convert the response to a pandas DataFrame.
  assert isinstance(extract_data('https://jsonplaceholder.typicode.com/todos', {'userId': 1}), pd.DataFrame)
  assert not extract_data('https://jsonplaceholder.typicode.com/todos', {'userId': 999}).empty
output: import pandas as pd
  import requests
  
  def extract_data(url, params):
      response = requests.get(url, params=params)
      data = response.json()
      return pd.DataFrame(data)