check if value is a dictionary python code example Example: check if is dictionary isinstance(df, pd.DataFrame) isinstance(df, dict) isinstance(df, list)