pandas.api.types.is_dict_like

pandas.api.types.is_dict_like(obj) [source]

Check if the object is dict-like.

Parameters:
obj : The object to check.
Returns:

is_dict_like : bool

Whether obj has dict-like properties.

Examples

>>> is_dict_like({1: 2})
True
>>> is_dict_like([1, 2, 3])
False

© 2008–2012, AQR Capital Management, LLC, Lambda Foundry, Inc. and PyData Development Team
Licensed under the 3-clause BSD License.
https://pandas.pydata.org/pandas-docs/version/0.23.4/generated/pandas.api.types.is_dict_like.html