class_docstr: This class wraps data into a dict-like object
docstr: Create a DataAccessObject either from a dictionary or a pandas.DataFrame
docstr_tok: ["Create","a","DataAccessObject","either","from","a","dictionary","or","a","pandas.DataFrame"]
code: def __init__(self, dict_or_df):
      """
      Create a DataAccessObject either from a dictionary or a pandas.DataFrame
      """
      if type(dict_or_df) == dict:
          self.dict = dict_or_df
      else:
          from pandas import DataFrame
  
          if type(dict_or_df) == DataFrame:
              self.dict = {
                  col: dict_or_df[col].values
                  for col in dict_or_df.columns
              }
          else:
              raise Exception(
                  "dict_or_df must be either a dictionary or a pandas.DataFrame"
              )
  
imports: from collections import defaultdict
  import csv
  from datetime import datetime
  import json
  from math import radians, cos, sin, asin, sqrt
  import urllib2
  import numpy
label_desc: Use image node_id 1 to create a new DataAccessObject object  with example: obj = DataAccessObject(dict_or_df)