def is_dataframe(d):
    """
    is_dataframe(d) yields True if d is a pandas DataFrame object and False otherwise; if
      pandas cannot be loaded, this yields None.
    """
    try:
        import pandas
    except Exception:
        return None
    return isinstance(d, pandas.DataFrame)
