-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BUG: df.plot() with FixedOffset timezones #17173
Comments
can u show an example where this actually fails |
Example added above |
this is a pretty new API IIRC. We don't support this, only If someone wants to add support (and to be honest, its mostly testing), go for it. |
This now raises:
|
Actually this is more of an issue with FixedOffset timezones now.
|
I don't think the following lines are needed since we handle datetime.timezone instances now.
|
Code Sample, a copy-pastable example if possible
The following example will trigger an exception:
This should fail with the error:
Problem description
The "else" branch in this code will fail on instances of datetime.timezone which don't have a
_transition_info
internal field, which is true with objects likedatetime.timezone.utc
.The code on master looks like this:
The problem is the setting of
inf
and its reference to_transition_info
, but if I'm reading this code correctly, this is dead code anyway. With that line removed, this code should work with things likedatetime.timezone.utc
again.Expected Output
I'd expect to be able to plot off timestamps which use datetime.timezone.utc as their timezone.
Output of
pd.show_versions()
INSTALLED VERSIONS
commit: None
python: 3.6.1.final.0
python-bits: 64
OS: Linux
OS-release: 4.10.0-27-generic
machine: x86_64
processor: x86_64
byteorder: little
LC_ALL: None
LANG: en_US.UTF-8
LOCALE: en_US.UTF-8
pandas: 0.20.2
pytest: None
pip: 9.0.1
setuptools: 27.2.0
Cython: None
numpy: 1.13.0
scipy: 0.19.1
xarray: None
IPython: 6.1.0
sphinx: None
patsy: None
dateutil: 2.6.0
pytz: 2017.2
blosc: None
bottleneck: None
tables: None
numexpr: None
feather: None
matplotlib: 2.0.2
openpyxl: None
xlrd: None
xlwt: None
xlsxwriter: None
lxml: None
bs4: None
html5lib: 0.999
sqlalchemy: None
pymysql: None
psycopg2: None
jinja2: 2.9.6
s3fs: None
pandas_gbq: None
pandas_datareader: None
The text was updated successfully, but these errors were encountered: