出[21]:如何創建數據框?
日期
2012-04-12 14:56:50 1.25640
2012-04-12 15:11:55 1.43075
2012-04-12 15:27:01 1.36991
2012-04-12 15:42:06 1.35935
2012-04-12 15:57:10 1.30568
2012-04-12 16:12:10 1.28775
2012-04-12 16:27:14 1.24597
2012-04-12 16:42:19 1.28228
2012-04-12 16:57:24 1.36571
2012-04-12 17:12:28 1.32013
2012-04-12 17:27:33 1.35489
2012-04-12 17:42:37 1.34368
2012-04-12 17:57:41 1.31422
2012-04-12 18:12:44 1.31197
2012-04-12 18:27:46 1.33898
...
2014-04-15 14:14:59 5.40786
2014-04-15 14:29:59 5.43847
2014-04-15 14:44:59 5.48222
2014-04-15 14:59:59 5.49327
2014-04-15 15:14:59 5.42679
2014-04-15 15:29:59 5.43036
2014-04-15 15:44:59 5.41471
2014-04-15 15:59:59 5.47004
2014-04-15 16:14:59 5.47507
2014-04-15 16:29:59 5.55595
2014-04-15 16:44:59 5.46151
2014-04-15 16:59:59 5.52125
2014-04-15 17:14:59 5.44116
2014-04-15 17:29:59 5.35836
2014-04-15 17:44:59 5.29439
名稱:千瓦時,長度:65701
我有這樣的數據幀,我想創建另一個3個dataframes用年,月,time.How我可以創建嗎?
3 dataframes虛擬數據?或者現有數據框中的3個新列將有所幫助? – Zero 2015-04-06 13:32:08
我想分開年份,月份和時間在3個不同的列。我不知道的方式..爲了解釋你我想分離後做線性迴歸。如果你能幫助我..... – Jimmys 2015-04-06 13:50:15