Closed
Description
lib.is_scalar
is a bit too strict for the check we do in
pandas/pandas/core/arrays/base.py
Line 272 in 7273ea0
ipaddress.IPv4Address
as a scalar.
In [1]: from pandas._libs import lib
In [2]: import ipaddress
In [3]: lib.is_scalar(ipaddress.IPv4Address(1))
Out[3]: False
Replacing that check with a hasattr(value, '__len__')
should be sufficient.