Python Check If Is Pandas Dataframe