how to check if something is in dataframe in python code example Example: python check if is pandas dataframe import pandas as pd isinstance(df, pd.DataFrame)