我有以下DataFrame.我想知道是否有可能将"数据"列分成多列.例如,从这个:
ID Date data 6 21/05/2016 A: 7, B: 8, C: 5, D: 5, A: 8 6 21/01/2014 B: 5, C: 5, D: 7 6 02/04/2013 A: 4, D:7 7 05/06/2014 C: 25 7 12/08/2014 D: 20 8 18/04/2012 A: 2, B: 3, C: 3, E: 5, B: 4 8 21/03/2012 F: 6, B: 4, F: 5, D: 6, B: 4
进入这个:
ID Date data A B C D E F 6 21/05/2016 A: 7, B: 8, C: 5, D: …
我有以下数据框架.
id A B C 1 34353 917998 x 2 34973 980340 x 3 87365 498097 x 4 98309 486547 x 5 87699 475132 6 52734 4298894 7 8749267 4918066 x 8 89872 18103 9 589892 4818086 y 10 765 4063 y 11 32369 418165 y 12 206 2918137 13 554 3918072 14 1029 1918051 x 15 2349243 4918064
对于每组空行,例如5,6,我想创建一个新的数据帧.需要生成多个数据帧.如下所示:
id A B 5 87699 475132 6 52734 4298894
id A B 8 89872 18103
id A B 12 206 …
我是cakephp的新手.我按照这个http://book.cakephp.org/2.0/en/tutorials-and-examples/blog/part-two.html教程,当我点击编辑链接时,除了"编辑方法"之外,一切正常提供以下警告消息,不进行编辑.
Warning (2): strtolower() expects parameter 1 to be string, array given [CORE/Cake/Network/CakeRequest.php, line 471]
Code Context
$type = array(
(int) 0 => 'post',
(int) 1 => 'put'
)
$this = object(CakeRequest) {
params => array(
'plugin' => null,
'controller' => 'posts',
'action' => 'edit',
'named' => array([maximum depth reached]),
'pass' => array(
[maximum depth reached]
)
)
data => array()
query => array()
url => 'posts/edit/2'
base => '/cake_2_0'
webroot => '/cake_2_0/'
here => '/cake_2_0/posts/edit/2'
}
strtolower …
Run Code Online (Sandbox Code Playgroud)