code: def get_df_from_arrays(arrays, periods):
      """
      A DataFrame from the specified OHCLV arrays.
  
      Parameters
      ----------
      arrays: Object
      periods: DateTimeIndex
  
      Returns
      -------
      DataFrame
  
      """
      ohlcv = dict()
      for index, field in enumerate(
          ["open", "high", "low", "close", "volume"]
      ):
          ohlcv[field] = arrays[index].flatten()
  
      df = pd.DataFrame(data=ohlcv, index=periods)
      return df
  
file_path: catalyst/catalyst/exchange/utils/bundle_utils.py
imports: import os
  import tarfile
  import numpy
  import pandas
  from catalyst.data.bundles.core import download_without_progress
  from catalyst.exchange.utils.exchange_utils import get_exchange_bundles_folder
label_desc: Use image node_id 2 for calling a global function with example usage: get_df_from_arrays(arrays, periods) and returns: df