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