Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
ENH: Export DataFrame containing datetime with tz to HDF5 in fixed format #11411
I noticed a bug about exporting DataFrame with columns containing localized datetime. I might be due to some another required libraries updated...
a = pd.to_datetime(['20120201', '20130201']) b = pd.to_datetime(['20120201', '20130201']) dfa = pd.DataFrame([a]) dfb = pd.DataFrame([b]) dfb = dfb.dt.tz_localize('UTC') dfa.to_hdf('tata.hdf', 'df') # success dfb.to_hdf('toto.hdf', 'df') # fail
It works fine with Series
It was never supported in any real way (and not tested), so it 'worked' I guess.