input: Write a function to filter data based on latitude and longitude in a pandas DataFrame.
  assert filter_data(df, -125.52, -120.2, 49.0, 51.0).shape == (expected_row_count, expected_column_count)
  assert filter_data(df, -130.0, -120.0, 45.0, 50.0).shape == (expected_row_count, expected_column_count)
  assert filter_data(df, -125.0, -122.0, 48.0, 50.0).shape == (expected_row_count, expected_column_count)
output: def filter_data(df, min_long, max_long, min_lat, max_lat):
      filtered_df = df[(df['longitude'] >= min_long) & (df['longitude'] <= max_long) & 
                       (df['latitude'] >= min_lat) & (df['latitude'] <= max_lat)]
      return filtered_df