check if pandas dataframe is dataframe or series?
to expand on Ryan's comment:
isinstance(df,pd.DataFrame) will return True if it is a dataframe. to check if it is a series, it would be isinstance(df,pd.Series).
What is the best way to check if a dataframe is a Pandas.Dataframe or pandas.Series?