-
-
Notifications
You must be signed in to change notification settings - Fork 18.8k
Open
Labels
DeprecateFunctionality to remove in pandasFunctionality to remove in pandasDtype ConversionsUnexpected or buggy dtype conversionsUnexpected or buggy dtype conversionsNeeds DiscussionRequires discussion from core team before further actionRequires discussion from core team before further action
Description
is_array_like is a a one-liner return is_list_like(obj) and hasattr(obj, "dtype")
. It does not recognize pyarrow objects. Often we use it when we really want something like isinstance(obj, (np.ndarray, Series, Index, ExtensionArray))
, which is much more typing-friendly. We should replace its usage with these more specific checks and deprecate it.
Discussed briefly in a dev meeting a couple months ago with generally positive reception.
Metadata
Metadata
Assignees
Labels
DeprecateFunctionality to remove in pandasFunctionality to remove in pandasDtype ConversionsUnexpected or buggy dtype conversionsUnexpected or buggy dtype conversionsNeeds DiscussionRequires discussion from core team before further actionRequires discussion from core team before further action