Answers for "python if type dict"

1

check if is dictionary

isinstance(df, pd.DataFrame)
isinstance(df, dict)
isinstance(df, list)
Posted by: Guest on November-26-2020
0

python if type dict

my_dict = isinstance({"A":"a", "B":"b", "C":"c", "D":"d"},dict)
print("my_dict is a dict:", my_dict)
Posted by: Guest on July-01-2021

Python Answers by Framework

Browse Popular Code Answers by Language