class_docstr: Utilities for technical indicators
      
docstr: Converts historical data matrix to a pandas dataframe.
  
  Args:
      historical_data (list): A matrix of historical OHCLV data.
  
  Returns:
      pandas.DataFrame: Contains the historical data in a pandas dataframe.
docstr_tok: ["Converts","historical","data","matrix","to","a","pandas","dataframe",".","Args",":","historical_data","(","list",")",":","A","matrix","of","historical","OHCLV","data",".","Returns",":","pandas.DataFrame",":","Contains","the","historical","data","in","a","pandas","dataframe","."]
code: def convert_to_dataframe(self, historical_data):
      """Converts historical data matrix to a pandas dataframe.
  
      Args:
          historical_data (list): A matrix of historical OHCLV data.
  
      Returns:
          pandas.DataFrame: Contains the historical data in a pandas dataframe.
      """
  
      dataframe = pandas.DataFrame(historical_data)
      dataframe.transpose()
  
      dataframe.columns = [
          "timestamp",
          "open",
          "high",
          "low",
          "close",
          "volume",
      ]
      dataframe["datetime"] = dataframe.timestamp.apply(
          lambda x: pandas.to_datetime(
              datetime.fromtimestamp(x / 1000).strftime("%c")
          )
      )
  
      dataframe.set_index("datetime", inplace=True, drop=True)
      dataframe.drop("timestamp", axis=1, inplace=True)
  
      return dataframe
  
imports: import math
  import pandas
  import structlog
  from datetime import datetime
label_desc: Use image node_id 2 for calling the IndicatorUtils obj's underlying member method code with example usage: obj.convert_to_dataframe(historical_data) and returns: dataframe