Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: group by and sum for two columns

by kevbot (Vicar)
on Aug 09, 2017 at 04:44 UTC ( [id://1197067]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    col1,col2,col3,col4,col5,col6,col7,col8
    1234,GP,20170715,0,V,97517,24,0.6
    ...
    5678,Pack,20170715,0,V,97517,183,3.9
    1234,PRS,20170715,0,S,97517,261,5.4
    5678,PRS,20170715,0,M,97517,36,0.9
    
  2. or download this
    #!/usr/bin/env perl
    
    ...
    }
    
    exit;
    
  3. or download this
    col2,sum_of_col7,sum_of_col8
    GP,46,1.2
    Pack,271,5.7
    PRS,297,6.3
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1197067]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (2)
As of 2024-04-26 00:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found