python if type dict

Solutions on MaxInterview for python if type dict by the best coders in the world

showing results for - "python if type dict"
Elliot
03 Aug 2016
1isinstance(df, pd.DataFrame)
2isinstance(df, dict)
3isinstance(df, list)
François
13 Oct 2016
1my_dict = isinstance({"A":"a", "B":"b", "C":"c", "D":"d"},dict)
2print("my_dict is a dict:", my_dict)
3