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