📖 INDEX
LOADING ENGINE...
df.tz_localize()
AI & DATA SCIENCE // df-tz-localize
Localize tz-naive index of a Series or DataFrame to target time zone.
Syntax
df = df.tz_localize('UTC')Examples
Example 01Basic Usage
df = df.tz_localize('UTC')Best Practices
- Use vectorized operations over iterations (e.g.
iterrows()) for performance. - Always verify memory usage when loading large files.