我有一個按時間索引的pandas.DataFrame
,如下所示。時間是在大紀元時間。當我繪製第二列時,這些時間值沿着x軸顯示。我想在幾分鐘內獲得更可讀的時間:秒。將csv列從時代轉換爲人類可讀分鐘
In [13]: print df.head()
Time
1481044277379 0.581858
1481044277384 0.581858
1481044277417 0.581858
1481044277418 0.581858
1481044277467 0.581858
我已經嘗試了一些大熊貓功能,併爲整個列轉換的一些方法,我訪問了:Pandas docs,這question和涼爽site。
我使用pandas 0.18.1
一些reearch的我忘了提:我用熊貓0.18.1 ,我已閱讀:http://pandas.pydata.org/pandas-docs/version/0.18.1/timeseries.html http://stackoverflow.com/questions/12400256/python-converting-epoch-time-into-the-datetime - 但我不明白如何實現。 – Andrew
此在線轉換提供了方法 - http://www.epochconverter.com/#code – Andrew