188
188
189
189
190
190
191
-
192
-
193
-
194
-
195
-
196
191
</ style >
197
192
</ head >
198
193
< body >
245
240
< summary > Output GroupBy</ summary >
246
241
< table class ="dataframe " id ="df_19 "> </ table >
247
242
248
- < p class ="dataframe_description "> </ p >
249
- </ details >
250
- </ details >
251
- < br >
252
- < details >
253
- < summary > df.groupBy { expr { name.firstName.length + name.lastName.length } named "nameLength" }</ summary >
254
-
255
- < details >
256
- < summary > Input DataFrame: rowsCount = 7, columnsCount = 5</ summary >
257
- < table class ="dataframe " id ="df_24 "> </ table >
258
-
259
- < p class ="dataframe_description "> </ p >
260
- </ details >
261
- < details >
262
- < summary > Output GroupBy</ summary >
263
- < table class ="dataframe " id ="df_25 "> </ table >
264
-
265
243
< p class ="dataframe_description "> </ p >
266
244
</ details >
267
245
</ details >
816
794
call_DataFrame ( function ( ) { DataFrame . renderTable ( 19 ) } ) ;
817
795
818
796
819
-
820
- /*<!--*/
821
- call_DataFrame ( function ( ) { DataFrame . addTable ( { cols : [ { name : "<span title=\"firstName: String\">firstName</span>" , children : [ ] , rightAlign : false , values : [ "Alice" , "Bob" , "Charlie" , "Charlie" , "Bob" , "Alice" , "Charlie" ] } ,
822
- { name : "<span title=\"lastName: String\">lastName</span>" , children : [ ] , rightAlign : false , values : [ "Cooper" , "Dylan" , "Daniels" , "Chaplin" , "Marley" , "Wolf" , "Byrd" ] } ,
823
- { name : "<span title=\"name: DataRow<*>\">name</span>" , children : [ 0 , 1 ] , rightAlign : false , values : [ "<span class=\"formatted\" title=\"firstName: Alice\nlastName: Cooper\"><span class=\"structural\">{ </span><span class=\"structural\">firstName: </span>Alice<span class=\"structural\">, </span><span class=\"structural\">lastName: </span>Cooper<span class=\"structural\"> }</span></span>" , "<span class=\"formatted\" title=\"firstName: Bob\nlastName: Dylan\"><span class=\"structural\">{ </span><span class=\"structural\">firstName: </span>Bob<span class=\"structural\">, </span><span class=\"structural\">lastName: </span>Dylan<span class=\"structural\"> }</span></span>" , "<span class=\"formatted\" title=\"firstName: Charlie\nlastName: Daniels\"><span class=\"structural\">{ </span><span class=\"structural\">firstName: </span>Charlie<span class=\"structural\">, </span><span class=\"structural\">lastName: </span>Dan<span class=\"structural\">...</span><span class=\"structural\"> }</span></span>" , "<span class=\"formatted\" title=\"firstName: Charlie\nlastName: Chaplin\"><span class=\"structural\">{ </span><span class=\"structural\">firstName: </span>Charlie<span class=\"structural\">, </span><span class=\"structural\">lastName: </span>Cha<span class=\"structural\">...</span><span class=\"structural\"> }</span></span>" , "<span class=\"formatted\" title=\"firstName: Bob\nlastName: Marley\"><span class=\"structural\">{ </span><span class=\"structural\">firstName: </span>Bob<span class=\"structural\">, </span><span class=\"structural\">lastName: </span>Marley<span class=\"structural\"> }</span></span>" , "<span class=\"formatted\" title=\"firstName: Alice\nlastName: Wolf\"><span class=\"structural\">{ </span><span class=\"structural\">firstName: </span>Alice<span class=\"structural\">, </span><span class=\"structural\">lastName: </span>Wolf<span class=\"structural\"> }</span></span>" , "<span class=\"formatted\" title=\"firstName: Charlie\nlastName: Byrd\"><span class=\"structural\">{ </span><span class=\"structural\">firstName: </span>Charlie<span class=\"structural\">, </span><span class=\"structural\">lastName: </span>Byrd<span class=\"structural\"> }</span></span>" ] } ,
824
- { name : "<span title=\"age: Int\">age</span>" , children : [ ] , rightAlign : true , values : [ "<span class=\"formatted\" title=\"\"><span class=\"numbers\">15</span></span>" , "<span class=\"formatted\" title=\"\"><span class=\"numbers\">45</span></span>" , "<span class=\"formatted\" title=\"\"><span class=\"numbers\">20</span></span>" , "<span class=\"formatted\" title=\"\"><span class=\"numbers\">40</span></span>" , "<span class=\"formatted\" title=\"\"><span class=\"numbers\">30</span></span>" , "<span class=\"formatted\" title=\"\"><span class=\"numbers\">20</span></span>" , "<span class=\"formatted\" title=\"\"><span class=\"numbers\">30</span></span>" ] } ,
825
- { name : "<span title=\"city: String?\">city</span>" , children : [ ] , rightAlign : false , values : [ "London" , "Dubai" , "Moscow" , "Milan" , "Tokyo" , "<span class=\"formatted\" title=\"\"><span class=\"null\">null</span></span>" , "Moscow" ] } ,
826
- { name : "<span title=\"weight: Int?\">weight</span>" , children : [ ] , rightAlign : true , values : [ "<span class=\"formatted\" title=\"\"><span class=\"numbers\">54</span></span>" , "<span class=\"formatted\" title=\"\"><span class=\"numbers\">87</span></span>" , "<span class=\"formatted\" title=\"\"><span class=\"null\">null</span></span>" , "<span class=\"formatted\" title=\"\"><span class=\"null\">null</span></span>" , "<span class=\"formatted\" title=\"\"><span class=\"numbers\">68</span></span>" , "<span class=\"formatted\" title=\"\"><span class=\"numbers\">55</span></span>" , "<span class=\"formatted\" title=\"\"><span class=\"numbers\">90</span></span>" ] } ,
827
- { name : "<span title=\"isHappy: Boolean\">isHappy</span>" , children : [ ] , rightAlign : false , values : [ "true" , "true" , "false" , "true" , "true" , "false" , "true" ] } ,
828
- ] , id : 24 , rootId : 24 , totalRows : 7 } ) } ) ;
829
- /*-->*/
830
-
831
- call_DataFrame ( function ( ) { DataFrame . renderTable ( 24 ) } ) ;
832
-
833
-
834
- /*<!--*/
835
- call_DataFrame ( function ( ) { DataFrame . addTable ( { cols : [ { name : "<span title=\"nameLength: Int\">nameLength</span>" , children : [ ] , rightAlign : true , values : [ "<span class=\"formatted\" title=\"\"><span class=\"numbers\">11</span></span>" , "<span class=\"formatted\" title=\"\"><span class=\"numbers\">8</span></span>" , "<span class=\"formatted\" title=\"\"><span class=\"numbers\">14</span></span>" , "<span class=\"formatted\" title=\"\"><span class=\"numbers\">9</span></span>" ] } ,
836
- { name : "<span title=\"group: DataFrame<*>\">group</span>" , children : [ ] , rightAlign : false , values : [ { frameId : 26 , value : "<b>DataFrame 2 x 5</b>" } , { frameId : 27 , value : "<b>DataFrame 1 x 5</b>" } , { frameId : 28 , value : "<b>DataFrame 2 x 5</b>" } , { frameId : 29 , value : "<b>DataFrame 2 x 5</b>" } ] } ,
837
- ] , id : 25 , rootId : 25 , totalRows : 4 } ) } ) ;
838
- /*-->*/
839
-
840
- /*<!--*/
841
- call_DataFrame ( function ( ) { DataFrame . addTable ( { cols : [ { name : "<span title=\"firstName: String\">firstName</span>" , children : [ ] , rightAlign : false , values : [ "Alice" , "Charlie" ] } ,
842
- { name : "<span title=\"lastName: String\">lastName</span>" , children : [ ] , rightAlign : false , values : [ "Cooper" , "Byrd" ] } ,
843
- { name : "<span title=\"name: DataRow<*>\">name</span>" , children : [ 0 , 1 ] , rightAlign : false , values : [ "<span class=\"formatted\" title=\"firstName: Alice\nlastName: Cooper\"><span class=\"structural\">{ </span><span class=\"structural\">firstName: </span>Alice<span class=\"structural\">, </span><span class=\"structural\">lastName: </span>Cooper<span class=\"structural\"> }</span></span>" , "<span class=\"formatted\" title=\"firstName: Charlie\nlastName: Byrd\"><span class=\"structural\">{ </span><span class=\"structural\">firstName: </span>Charlie<span class=\"structural\">, </span><span class=\"structural\">lastName: </span>Byrd<span class=\"structural\"> }</span></span>" ] } ,
844
- { name : "<span title=\"age: Int\">age</span>" , children : [ ] , rightAlign : true , values : [ "<span class=\"formatted\" title=\"\"><span class=\"numbers\">15</span></span>" , "<span class=\"formatted\" title=\"\"><span class=\"numbers\">30</span></span>" ] } ,
845
- { name : "<span title=\"city: String\">city</span>" , children : [ ] , rightAlign : false , values : [ "London" , "Moscow" ] } ,
846
- { name : "<span title=\"weight: Int\">weight</span>" , children : [ ] , rightAlign : true , values : [ "<span class=\"formatted\" title=\"\"><span class=\"numbers\">54</span></span>" , "<span class=\"formatted\" title=\"\"><span class=\"numbers\">90</span></span>" ] } ,
847
- { name : "<span title=\"isHappy: Boolean\">isHappy</span>" , children : [ ] , rightAlign : false , values : [ "true" , "true" ] } ,
848
- ] , id : 26 , rootId : 25 , totalRows : 2 } ) } ) ;
849
- /*-->*/
850
-
851
- /*<!--*/
852
- call_DataFrame ( function ( ) { DataFrame . addTable ( { cols : [ { name : "<span title=\"firstName: String\">firstName</span>" , children : [ ] , rightAlign : false , values : [ "Bob" ] } ,
853
- { name : "<span title=\"lastName: String\">lastName</span>" , children : [ ] , rightAlign : false , values : [ "Dylan" ] } ,
854
- { name : "<span title=\"name: DataRow<*>\">name</span>" , children : [ 0 , 1 ] , rightAlign : false , values : [ "<span class=\"formatted\" title=\"firstName: Bob\nlastName: Dylan\"><span class=\"structural\">{ </span><span class=\"structural\">firstName: </span>Bob<span class=\"structural\">, </span><span class=\"structural\">lastName: </span>Dylan<span class=\"structural\"> }</span></span>" ] } ,
855
- { name : "<span title=\"age: Int\">age</span>" , children : [ ] , rightAlign : true , values : [ "<span class=\"formatted\" title=\"\"><span class=\"numbers\">45</span></span>" ] } ,
856
- { name : "<span title=\"city: String\">city</span>" , children : [ ] , rightAlign : false , values : [ "Dubai" ] } ,
857
- { name : "<span title=\"weight: Int\">weight</span>" , children : [ ] , rightAlign : true , values : [ "<span class=\"formatted\" title=\"\"><span class=\"numbers\">87</span></span>" ] } ,
858
- { name : "<span title=\"isHappy: Boolean\">isHappy</span>" , children : [ ] , rightAlign : false , values : [ "true" ] } ,
859
- ] , id : 27 , rootId : 25 , totalRows : 1 } ) } ) ;
860
- /*-->*/
861
-
862
- /*<!--*/
863
- call_DataFrame ( function ( ) { DataFrame . addTable ( { cols : [ { name : "<span title=\"firstName: String\">firstName</span>" , children : [ ] , rightAlign : false , values : [ "Charlie" , "Charlie" ] } ,
864
- { name : "<span title=\"lastName: String\">lastName</span>" , children : [ ] , rightAlign : false , values : [ "Daniels" , "Chaplin" ] } ,
865
- { name : "<span title=\"name: DataRow<*>\">name</span>" , children : [ 0 , 1 ] , rightAlign : false , values : [ "<span class=\"formatted\" title=\"firstName: Charlie\nlastName: Daniels\"><span class=\"structural\">{ </span><span class=\"structural\">firstName: </span>Charlie<span class=\"structural\">, </span><span class=\"structural\">lastName: </span>Dan<span class=\"structural\">...</span><span class=\"structural\"> }</span></span>" , "<span class=\"formatted\" title=\"firstName: Charlie\nlastName: Chaplin\"><span class=\"structural\">{ </span><span class=\"structural\">firstName: </span>Charlie<span class=\"structural\">, </span><span class=\"structural\">lastName: </span>Cha<span class=\"structural\">...</span><span class=\"structural\"> }</span></span>" ] } ,
866
- { name : "<span title=\"age: Int\">age</span>" , children : [ ] , rightAlign : true , values : [ "<span class=\"formatted\" title=\"\"><span class=\"numbers\">20</span></span>" , "<span class=\"formatted\" title=\"\"><span class=\"numbers\">40</span></span>" ] } ,
867
- { name : "<span title=\"city: String\">city</span>" , children : [ ] , rightAlign : false , values : [ "Moscow" , "Milan" ] } ,
868
- { name : "<span title=\"weight: Int?\">weight</span>" , children : [ ] , rightAlign : true , values : [ "<span class=\"formatted\" title=\"\"><span class=\"null\">null</span></span>" , "<span class=\"formatted\" title=\"\"><span class=\"null\">null</span></span>" ] } ,
869
- { name : "<span title=\"isHappy: Boolean\">isHappy</span>" , children : [ ] , rightAlign : false , values : [ "false" , "true" ] } ,
870
- ] , id : 28 , rootId : 25 , totalRows : 2 } ) } ) ;
871
- /*-->*/
872
-
873
- /*<!--*/
874
- call_DataFrame ( function ( ) { DataFrame . addTable ( { cols : [ { name : "<span title=\"firstName: String\">firstName</span>" , children : [ ] , rightAlign : false , values : [ "Bob" , "Alice" ] } ,
875
- { name : "<span title=\"lastName: String\">lastName</span>" , children : [ ] , rightAlign : false , values : [ "Marley" , "Wolf" ] } ,
876
- { name : "<span title=\"name: DataRow<*>\">name</span>" , children : [ 0 , 1 ] , rightAlign : false , values : [ "<span class=\"formatted\" title=\"firstName: Bob\nlastName: Marley\"><span class=\"structural\">{ </span><span class=\"structural\">firstName: </span>Bob<span class=\"structural\">, </span><span class=\"structural\">lastName: </span>Marley<span class=\"structural\"> }</span></span>" , "<span class=\"formatted\" title=\"firstName: Alice\nlastName: Wolf\"><span class=\"structural\">{ </span><span class=\"structural\">firstName: </span>Alice<span class=\"structural\">, </span><span class=\"structural\">lastName: </span>Wolf<span class=\"structural\"> }</span></span>" ] } ,
877
- { name : "<span title=\"age: Int\">age</span>" , children : [ ] , rightAlign : true , values : [ "<span class=\"formatted\" title=\"\"><span class=\"numbers\">30</span></span>" , "<span class=\"formatted\" title=\"\"><span class=\"numbers\">20</span></span>" ] } ,
878
- { name : "<span title=\"city: String?\">city</span>" , children : [ ] , rightAlign : false , values : [ "Tokyo" , "<span class=\"formatted\" title=\"\"><span class=\"null\">null</span></span>" ] } ,
879
- { name : "<span title=\"weight: Int\">weight</span>" , children : [ ] , rightAlign : true , values : [ "<span class=\"formatted\" title=\"\"><span class=\"numbers\">68</span></span>" , "<span class=\"formatted\" title=\"\"><span class=\"numbers\">55</span></span>" ] } ,
880
- { name : "<span title=\"isHappy: Boolean\">isHappy</span>" , children : [ ] , rightAlign : false , values : [ "true" , "false" ] } ,
881
- ] , id : 29 , rootId : 25 , totalRows : 2 } ) } ) ;
882
- /*-->*/
883
-
884
- call_DataFrame ( function ( ) { DataFrame . renderTable ( 25 ) } ) ;
885
-
886
-
887
797
</ script >
888
798
</ html >
0 commit comments