python check if type dict code example
Example 1: check if is dictionary
isinstance(df, pd.DataFrame)
isinstance(df, dict)
isinstance(df, list)
Example 2: python check if false in dict
a_dictionary = {"a": 1, "b": 2}
contains_1 = 1 in a_dictionary.values()
print(contains_1)