iloc erroneously truncates underlying data for timestamps with timezone #30263
Labels
ExtensionArray
Extending pandas with custom dtypes or arrays.
good first issue
Indexing
Related to indexing on series/frames, not to indexes themselves
Needs Tests
Unit test(s) needed to prevent regressions
Milestone
This is a strange one... Here's a short repro of the error, which I can reproduce in pandas 0.21-0.25 and numpy 0.15-0.17 (I didn't try further back than that):
It seems that somehow, the second argument of iloc is truncating the underlying data along the wrong axis:
This only appears to happen if the data contains timestamps with a timezone specified. If I remove
tz='UTC'
above, everything works properly.The text was updated successfully, but these errors were encountered: