You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The argument utc=True in function to_datetime is not working when passing a Series, differently from other case, e.g. when passing a list or a scalar Unix timestamp.
Expected Output
The expected output is the same as the one given by
Code Sample, a copy-pastable example if possible
Problem description
The argument
utc=True
in functionto_datetime
is not working when passing aSeries
, differently from other case, e.g. when passing a list or a scalar Unix timestamp.Expected Output
The expected output is the same as the one given by
Another example:
tz_convert
It is straightforward to convert to another time zone from a Unix timestamp or list:
whereas for a
Series
:Output of
pd.show_versions()
pandas: 0.19.2
nose: 1.3.7
pip: 8.1.2
setuptools: 27.2.0.post20161106
Cython: 0.24.1
numpy: 1.11.1
scipy: 0.18.1
statsmodels: 0.6.1
xarray: None
IPython: 5.1.0
sphinx: 1.4.6
patsy: 0.4.1
dateutil: 2.5.3
pytz: 2016.6.1
blosc: None
bottleneck: 1.1.0
tables: 3.2.3.1
numexpr: 2.6.1
matplotlib: 1.5.3
openpyxl: 2.3.2
xlrd: 1.0.0
xlwt: 1.1.2
xlsxwriter: 0.9.3
lxml: 3.6.4
bs4: 4.5.1
html5lib: None
httplib2: None
apiclient: None
sqlalchemy: 1.0.13
pymysql: None
psycopg2: None
jinja2: 2.8
boto: 2.42.0
pandas_datareader: 0.2.1
The text was updated successfully, but these errors were encountered: