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