Reputation: 61
How could I remove Timezone information from my time column without converting it into any other timezone when column datatype is object:
Sat Jun 10 2017 22:50:45 GMT+0300 (IDT)
Request result: 2017-6-10 22:50:45
Request dtype: datetime64[ns]
Upvotes: 2
Views: 11583
Reputation: 361
How about making a copy of the column (say, a Series called time_series
) and removing the timezone using time_series = time_series.apply(lambda d: d.replace(tzinfo=None))
?
Upvotes: 6
Reputation: 185
You can use this:
tmpDatetime = tmpDatetime.replace(tzinfo=None)
Upvotes: 1