-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
BUG: Timestamp.weekday_name uses UTC instead of given timezone #17354
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
Comments
Oops. ¯ \ _ (ツ) _ / ¯ PR to patch this is welcome! |
this is correct for a DTI, but the impl for |
needs (see
|
Code Sample, a copy-pastable example if possible
Problem description
For
pd.Timestamp
objects with timezone information, theweekday_name
attribute appears to give the name of the weekday in UTC (in the above example, this would be 2017-08-29 04:00:00), whereasweekday()
uses local time. I could find no mention of this difference in the documentation forweekday
andweekday_name
. I would expect both to work in the given timezone.Expected Output
Output of
pd.show_versions()
INSTALLED VERSIONS
commit: None
python: 3.6.1.final.0
python-bits: 64
OS: Windows
OS-release: 10
machine: AMD64
processor: Intel64 Family 6 Model 58 Stepping 9, GenuineIntel
byteorder: little
LC_ALL: C
LANG: None
LOCALE: None.None
pandas: 0.20.3
pytest: None
pip: 9.0.1
setuptools: 36.2.7
Cython: None
numpy: 1.13.1
scipy: None
xarray: None
IPython: None
sphinx: None
patsy: None
dateutil: 2.6.1
pytz: 2017.2
blosc: None
bottleneck: None
tables: None
numexpr: None
feather: None
matplotlib: None
openpyxl: None
xlrd: None
xlwt: None
xlsxwriter: None
lxml: None
bs4: None
html5lib: None
sqlalchemy: None
pymysql: None
psycopg2: 2.7.3.1 (dt dec pq3 ext lo64)
jinja2: 2.9.6
s3fs: None
pandas_gbq: None
pandas_datareader: None
The text was updated successfully, but these errors were encountered: