-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
Timezone info is lost when pickling datetime indices #8367
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
I forgot my versions information: >>> pd.show_versions()
INSTALLED VERSIONS
------------------
commit: None
python: 2.7.7.final.0
python-bits: 64
OS: Windows
OS-release: 8
machine: AMD64
processor: Intel64 Family 6 Model 42 Stepping 7, GenuineIntel
byteorder: little
LC_ALL: None
LANG: None
pandas: 0.14.0
nose: 1.3.3
Cython: 0.20.1
numpy: 1.8.1
scipy: 0.14.0
statsmodels: 0.5.0
IPython: 2.1.0
sphinx: 1.2.2
patsy: 0.2.1
scikits.timeseries: None
dateutil: 1.5
pytz: 2014.3
bottleneck: None
tables: 3.1.1
numexpr: 2.3.1
matplotlib: 1.3.1
openpyxl: 1.8.5
xlrd: 0.9.3
xlwt: 0.7.5
xlsxwriter: 0.5.5
lxml: 3.3.5
bs4: 4.3.1
html5lib: None
bq: None
apiclient: None
rpy2: None
sqlalchemy: 0.9.4
pymysql: None
psycopg2: None |
can u show how this was created in the first place? also df.info() |
The dataframe was created with: import pytz
from dateutil.parser import parse
def parse_time(v):
return parse(v).replace(tzinfo=pytz.utc)
df = pd.read_csv(r"C:\counts\raw.data", index_col=[2, 3, 4, 0], date_parser=parse_time,
parse_dates=[0, 1], header=0) Here's the result of
And after deserializing:
|
try with a pre-release of 0.15.0 and see if the error persists: https://github.com/pydata/pandas/releases |
Hmm, this does seem buggy.
|
thanks for this report. It is now working in master. I will post updated binaries (maybe in a week of so) |
Wow! That was fast! Many thanks for addressing this so quickly! |
well thanks for bringing it up |
Please note that the timezone is lost from
start_time
.The text was updated successfully, but these errors were encountered: