A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/pandas-dev/pandas/issues/55015 below:

Interval(Timestamp(..., tz=...)) should show UTC offset · Issue #55015 · pandas-dev/pandas · GitHub

Pandas version checks Reproducible Example
In [17]: from pandas import *

In [20]: Interval(Timestamp('2013-01-01 16:00:00', tz="US/Eastern"), Timestamp('2013-01-02 08:00:00', tz="US/Eastern"))
Out[20]: Interval('2013-01-01 16:00:00', '2013-01-02 08:00:00', closed='right')

In [21]: Interval(Timestamp('2013-01-01 16:00:00', tz="US/Eastern"), Timestamp('2013-01-02 08:00:00', tz="US/Eastern")).left
Out[21]: Timestamp('2013-01-01 16:00:00-0500', tz='US/Eastern')
Issue Description

Though the left and right boundaries of the interval are tz aware, the repr of Interval does not indicate that the bounds are tz aware

Expected Behavior
Out[20]: Interval('2013-01-01 16:00:00-0500', '2013-01-02 08:00:00-0500', closed='right')
Installed Versions

Replace this line with the output of pd.show_versions()


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4