diff --git a/pandas/core/dtypes/cast.py b/pandas/core/dtypes/cast.py index 0719b8ce6010b..8ac8cca5930d4 100644 --- a/pandas/core/dtypes/cast.py +++ b/pandas/core/dtypes/cast.py @@ -1376,7 +1376,7 @@ def find_common_type(types): if len(types) == 0: raise ValueError("no types given") - first = types[0] + first = types.iloc[0] # workaround for find_common_type([np.dtype('datetime64[ns]')] * 2) # => object