pandas 1.4.2

ParametersReturnsBackRef

Objects that are considered list-like are for example Python lists, tuples, sets, NumPy arrays, and Pandas Series.

Strings and datetime objects, however, are not considered list-like.

Parameters

obj : object

Object to check.

allow_sets : bool, default True

If this parameter is False, sets will not be considered list-like.

Returns

bool

Whether :None:None:`obj` has list-like properties.

Check if the object is list-like.

Examples

This example is valid syntax, but we were not able to check execution
>>> import datetime
... is_list_like([1, 2, 3]) True
This example is valid syntax, but we were not able to check execution
>>> is_list_like({1, 2, 3})
True
This example is valid syntax, but we were not able to check execution
>>> is_list_like(datetime.datetime(2017, 1, 1))
False
This example is valid syntax, but we were not able to check execution
>>> is_list_like("foo")
False
This example is valid syntax, but we were not able to check execution
>>> is_list_like(1)
False
This example is valid syntax, but we were not able to check execution
>>> is_list_like(np.array([2]))
True
This example is valid syntax, but we were not able to check execution
>>> is_list_like(np.array(2))
False
See :

Back References

The following pages refer to to this document either explicitly or contain code examples using this.

pandas._libs.lib.is_list_like pandas.core.dtypes.inference.is_nested_list_like

Local connectivity graph

Hover to see nodes names; edges to Self not shown, Caped at 50 nodes.

Using a canvas is more power efficient and can get hundred of nodes ; but does not allow hyperlinks; , arrows or text (beyond on hover)

SVG is more flexible but power hungry; and does not scale well to 50 + nodes.

All aboves nodes referred to, (or are referred from) current nodes; Edges from Self to other have been omitted (or all nodes would be connected to the central node "self" which is not useful). Nodes are colored by the library they belong to, and scaled with the number of references pointing them


File: None#None
type: <class 'builtin_function_or_method'>
Commit: