code: def is_dataframe(data):
      
      dd = None
      if 'dask' in sys.modules and 'pandas' in sys.modules:
          import dask.dataframe as dd
      return((pd is not None and isinstance(data, pd.DataFrame)) or
            (dd is not None and isinstance(data, dd.DataFrame)))
docs: Checks whether the supplied data is of DataFrame type.