Skip to content

DatetimeIndex.drop is losing timezone information #2621

Closed
@rafaljozefowicz

Description

@rafaljozefowicz
    def test_index_tz(self):
        ind = pd.date_range("2012-12-01", periods=10, tz="utc")
        ind = ind.drop(ind[-1])
        self.assertIsNone(ind.tz)

That seems counter-intuitive.
Freq information is also dropped, but that is IMHO less important

This is on pandas 0.10

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions