Python Virtual Training For Arcesium - Module III - Day 5

Sep 13-17, 2021 Vikrant Patil

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

© Pipal Academy LLP

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

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

login to hub and create a notebook with name module3-day5

Debugging python programs

  1. First step in debugging python programs is to look carefully at error trace provided by python interpreter

variables names/functions/classes or name any object that you want to create

  1. alphanumeric with _ as additional char
  2. names can start with _ or alphabet.. it can not start with a number

: is missing in above for loop

Debugging programs with pdb

use this after all syntax kind of errors are fixed, after proper variable/function names are given

packaging your code as python package

lets create a package called tableA

tableA
   |
   |--setup.py
   |--requirements.py  
   + A
     |
     |--__init__.py
     |-- extract_tableA.py
     + B
       |
       |-- __init__.py

this package can be installed in virtual environment and can be passed to other users as a python package

regular expresssion

How tos