How do you handle timezone aware and naive datetime objects in Pandas?
Instruction: Discuss the management and conversion of timezone aware and naive datetime objects in time series data.
Context: This question evaluates the candidate's understanding of handling datetime objects with or without timezone information, a common requirement in time series analysis.
Updated
Official answer available
Read the opening below, then unlock the full answer and practical guidance.
A naive timestamp is a wall-clock value without a timezone. tz_localize assigns its known timezone without shifting that wall time; tz_convert changes the displayed zone of an aware timestamp while preserving the instant.
```python import pandas as pd...