---
title: "Discussion on \"pandas tz_convert to Asia/Shanghai: 5 Steps to Map UTC News Timestamps onto A-Share Trading Sessions\" | Hashnode"
description: "Discussion on \"pandas tz_convert to Asia/Shanghai: 5 Steps to Map UTC News Timestamps onto A-Share Trading Sessions\". To map UTC news timestamps onto A-share trading sessions in pandas, parse them as timezone-aware UTC (utc=True), convert with dt.tz_convert(\"Asia/Shanghai\"), and only then derive the date, the session"
url: "https://hashnode.com/posts/pandas-tz-convert-asia-shanghai-trading-sessions/6afdeda04e643b1e4071baf6"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [pandas tz\_convert to Asia/Shanghai: 5 Steps to Map UTC News Timestamps onto A-Share Trading Sessions](https://dustinliang.hashnode.dev/pandas-tz-convert-asia-shanghai-trading-sessions?utm_source=hashnode&utm_medium=feed)

To map UTC news timestamps onto A-share trading sessions in pandas, parse them as timezone-aware UTC (utc=True), convert with dt.tz\_convert("Asia/Shanghai"), and only then derive the date, the session

3d ago · 5 min read · dustinliang.hashnode.dev  
Read the article

-   [#pandas](https://hashnode.com/tag/pandas)
-   [#python](https://hashnode.com/tag/python)
-   [#data-analysis](https://hashnode.com/tag/data-analysis)
-   [#finance](https://hashnode.com/tag/finance)

## Written by

[Dustin Liang](https://hashnode.com/@dustinliang)

@dustinliang

  
[View profile](https://hashnode.com/@dustinliang)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
