Python Virtual Training For Arcesium - Module II

Oct 11-15, 2021 Vikrant Patil

These notes are available online at https://notes.pipal.in/2021/arcesium_finop_batch2/

© Pipal Academy LLP

Day 1 | Day 2 | Day 3 | Day 4 | Day 5

We will be using jupyter hub from https://lab2.pipal.in for this training.

create a notebook with name module2-day5

Working with CSV files

Writing csv files

problems

!python3 combine.py file1.csv file2.csv output.csv
!python3 cat.py output.csv
item,price,category
amazon kindle book,545.0,books
mobile recharge,499.0,communication
amazon kindle book1,550.0,books
data recharge,399.0,communication
air ticket,6000.0,travel
meal,499.0,food
  1. have to read both files
  2. have to get column names from both files
  3. find common columns
  4. read remaining data from both files
  5. from that data start writing another csv files in which we will write only common columns

Writing excel files

xlsxwriter help can be found here