-
-
Notifications
You must be signed in to change notification settings - Fork 18.8k
Closed
Labels
DatetimeDatetime data dtypeDatetime data dtypeDtype ConversionsUnexpected or buggy dtype conversionsUnexpected or buggy dtype conversionsExtensionArrayExtending pandas with custom dtypes or arrays.Extending pandas with custom dtypes or arrays.IndexingRelated to indexing on series/frames, not to indexes themselvesRelated to indexing on series/frames, not to indexes themselves
Description
What's the expected output for
In [9]: a = pd.Series(pd.DatetimeIndex(['2000', '2000'], tz="UTC"))
In [10]: a.loc[:] = np.array([pd.Timestamp('2000', tz="UTC")] * 2)
On master, we coerce self
to object
and then set.
In [11]: a
Out[11]:
0 2000-01-01 00:00:00+00:00
1 2000-01-01 00:00:00+00:00
dtype: object
Should we instead coerce value
, rather than self?
Metadata
Metadata
Assignees
Labels
DatetimeDatetime data dtypeDatetime data dtypeDtype ConversionsUnexpected or buggy dtype conversionsUnexpected or buggy dtype conversionsExtensionArrayExtending pandas with custom dtypes or arrays.Extending pandas with custom dtypes or arrays.IndexingRelated to indexing on series/frames, not to indexes themselvesRelated to indexing on series/frames, not to indexes themselves