Incorrect timedelta type coercion when doing in-place .loc expansion #13829
Labels
Bug
Dtype Conversions
Unexpected or buggy dtype conversions
Needs Tests
Unit test(s) needed to prevent regressions
setitem-with-expansion
Timedelta
Timedelta data type
Code Sample, a copy-pastable example if possible
Expected Output
The
c
column should have typeobject
and the value atloc[0]
should be of type string.Note that this does not happen when only one of the
a
orb
are timedeltas:In these two cases, the
c
column retains the correct type.output of
pd.show_versions()
The text was updated successfully, but these errors were encountered: