Skip to content

Commit 4a3e915

Browse files
committed
BUG: Fixes index bug in cast.py for issue pandas-dev#18414
1 parent 4b142ef commit 4a3e915

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/core/dtypes/cast.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1376,7 +1376,7 @@ def find_common_type(types):
13761376
if len(types) == 0:
13771377
raise ValueError("no types given")
13781378

1379-
first = types[0]
1379+
first = types.iloc[0]
13801380

13811381
# workaround for find_common_type([np.dtype('datetime64[ns]')] * 2)
13821382
# => object

0 commit comments

Comments
 (0)