Need Help ?

Home / Expert Answers / Other / a-csv-file-contains-spreadsheet-data-of-log-sizes-in-the-below-format-write-a-script-to-produce-csv-

(Answered): A csv file contains spreadsheet data of log sizes in the below format. Write a script to produce cs ...




A csv file contains spreadsheet data of log sizes in the below format. Write a script to produce csv output with total log siOriginal code Python 3 + Enter your code here. The csv input has been populated for you into a string, cav_input. Print outpu
A csv file contains spreadsheet data of log sizes in the below format. Write a script to produce csv output with total log sizes for each exchange in each day • Your script can be written in Python 2 or 3. Select your language from the drop down before beginning to code. • Output should be printed to STDOUT and sorted by date and then by exchange, as in the sample output • Exchange names are reliably included in process names. • Do not use a data analysis library, like pandas. Write your own summation logic • The contents of the csv file have been read from STDIN into cs_input as a string for you. Input: date process, hostlog,bytes 20140206,cme_trader_2.cme0001,0345-cme_trader_2.log.g2,15400000 20140206,phix_trader_1.phx0001,0651.phbx_trader_log.gz, 14100000 20140206,phix_trader_2.phx0001,0645-phix_trader_2.109.9213800000 20140207 cme_trader_2.cme0001,0345-cme_trader_2.109.92.15800000 20140207 cme_trader_3.cme0001,0345-cme_trader_3.109.92.14200000 20140207,phix_trader_1.phx0001,0651-phix_trader.1.109.92.24100000 Output date,exchange total bytes 20140206 cme, 15400000 20140206,phix, 27900000 20140207 cme, 30000000 20140207,phlx, 24 100000 Original code Python 3 + Enter your code here. The csv input has been populated for you into a string, cav_input. Print output to STDOUT


We have an Answer from Expert

View Expert Answer

Expert Answer


Answer to A csv file contains spreadsheet data of log sizes in the below format. Write a script to produce csv output with total l...
We have an Answer from Expert

Buy This Answer $4

Place Order