check if variable is dataframe

when my function f is called with a variable I want to check if var is a pandas dataframe: def f(var): if var == pd.DataFrame(): print "do stuff" I guess the solution might be quite s...