Skip to content

Commit

Permalink
BUG: Fixes index bug in cast.py for issue pandas-dev#18414
Browse files Browse the repository at this point in the history
  • Loading branch information
khalludi committed Feb 7, 2020
1 parent 4b142ef commit 4a3e915
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pandas/core/dtypes/cast.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4a3e915

Please sign in to comment.