docstr: Selects data from the CoinBase API and returns it as a pandas DataFrame.
  
  Returns dataframe representing the CoinBase API results.
  
  Args:
      query (ast.Select): Given SQL SELECT query
docstr_tok: ["Selects","data","from","the","CoinBase","API","and","returns","it","as","a","pandas","DataFrame",".","Returns","dataframe","representing","the","CoinBase","API","results",".","Args",":","query","(","ast.Select",")",":","Given","SQL","SELECT","query"]
code: def select(self, query: ast.Select) -> pd.DataFrame:
      """Selects data from the CoinBase API and returns it as a pandas DataFrame.
  
      Returns dataframe representing the CoinBase API results.
  
      Args:
          query (ast.Select): Given SQL SELECT query
      """
      conditions = extract_comparison_conditions(query.where)
  
      params = {
          "interval": CoinBaseAggregatedTradesTable.DEFAULT_INTERVAL,
          "symbol": CoinBaseAggregatedTradesTable.DEFAULT_SYMBOL,
      }
      for op, arg1, arg2 in conditions:
          if arg1 == "interval":
              if op != "=":
                  raise NotImplementedError
              params["interval"] = arg2
  
          elif arg1 == "symbol":
              if op != "=":
                  raise NotImplementedError
              params["symbol"] = arg2
  
      coinbase_candle_data = self.handler.call_coinbase_api(
          method_name="get_candle", params=params
      )
  
      return coinbase_candle_data
  
imports: from mindsdb.integrations.libs.api_handler import APITable
  from mindsdb.integrations.utilities.sql_utils import extract_comparison_conditions
  from mindsdb_sql.parser import ast
  import pandas
label_desc: Use image node_id 1 for calling the CoinBaseAggregatedTradesTable obj's underlying member method code with example usage: obj.select(query) and returns: coinbase_candle_data