docstr: Creates DataFrames from the bundle and exchange for the specified
  data set.
  
  Parameters
  ----------
  exchange: Exchange
  assets
  end_dt
  bar_count
  freq
  data_frequency
  data_portal
  
  Returns
  -------
docstr_tok: ["Creates","DataFrames","from","the","bundle","and","exchange","for","the","specified","data","set",".","Parameters","--","--","--","--","--","exchange",":","Exchange","assets","end_dt","bar_count","freq","data_frequency","data_portal","Returns","--","--","--","-"]
code: def compare_current_with_last_candle(
      self, exchange, assets, end_dt, freq, data_frequency, data_portal
  ):
      """
      Creates DataFrames from the bundle and exchange for the specified
      data set.
  
      Parameters
      ----------
      exchange: Exchange
      assets
      end_dt
      bar_count
      freq
      data_frequency
      data_portal
  
      Returns
      -------
  
      """
      data = dict()
  
      assets = sorted(assets, key=lambda a: a.symbol)
      log_catcher = TestHandler()
      with log_catcher:
          symbols = [asset.symbol for asset in assets]
          print(
              "comparing data for {}/{} with {} timeframe on {}".format(
                  exchange.name, symbols, freq, end_dt
              )
          )
          data["candle"] = data_portal.get_history_window(
              assets=assets,
              end_dt=end_dt,
              bar_count=1,
              frequency=freq,
              field="close",
              data_frequency=data_frequency,
          )
          set_print_settings()
          print(
              "the bundle first / last row:\n{}".format(
                  data["candle"].iloc[[-1]]
              )
          )
          current = data_portal.get_spot_value(
              assets=assets,
              field="close",
              dt=end_dt,
              data_frequency=data_frequency,
          )
          data["current"] = pd.Series(data=current, index=assets)
          print("the current price:\n{}".format(data["current"]))
          pass
  
file_path: catalyst/tests/exchange/test_suites/test_suite_bundle.py
imports: import random
  import os
  import pandas
  from datetime import timedelta
  from logbook import TestHandler
  from pandas.util.testing import assert_frame_equal
  from catalyst import get_calendar
  from catalyst.exchange.exchange_asset_finder import ExchangeAssetFinder
  from catalyst.exchange.exchange_data_portal import DataPortalExchangeBacktest
  from catalyst.exchange.utils.exchange_utils import get_candles_df
  from catalyst.exchange.utils.factory import get_exchange
  from catalyst.exchange.utils.test_utils import output_df, select_random_assets
  from catalyst.exchange.utils.stats_utils import set_print_settings
label_desc: Use image node_id 3 for calling the TestSuiteBundle obj's underlying member method code with example usage: obj.compare_current_with_last_candle(exchange, assets, end_dt, freq, data_frequency, data_portal) without return types