Deesha Tech Academy
Menu
DTA-18AvailablePythonFastAPIpandasNumPyscikit-learnpytestDuckDB

Python Programming

Python for backend, data and machine learning: depth over syntax, industry practice, and three working builds

Designed for

  • Developers in any language who need Python at professional depth
  • Students targeting AI, machine learning, data science or analytics roles
  • Graduates who have used Python for coursework and never for a codebase
  • Backend developers moving onto Python services
  • Analysts working in Excel and SQL who need a programming layer underneath
Fee
₹5,400
Duration
60 guided hours
Mode
Online / Offline
Ask about this course

Course curriculum

19 progressive modules

Duration: 60 guided hours

  1. Week 1

    Sessions 1–5FoundationIntermediate
    • 01–02Python, its toolchain and the object model

      What you build

      A reproducible project created with uv, linted by ruff and committed, plus the aliasing demonstration where two names share one list and a "copy" changes both.

      • installing a current Python
      • uv for environments and dependencies
      • virtual environments and why they are not optional
      • ruff for linting and formatting
      • running scripts and modules
      • the REPL and the debugger
      • syntax speed-run over types and operators and control flow
      • functions and return values
      • f-strings
      • everything is an object
      • names bind to objects
      • mutability
      • identity compared with equality
      • is compared with double equals
      • truthiness
    • 03Data structures and comprehensions

      What you build

      A log summariser written twice, once with loops and once with comprehensions and Counter, timed against each other so the difference is measured rather than asserted.

      • lists and tuples and sets and dicts
      • choosing between them
      • slicing
      • mutation compared with rebinding
      • comprehensions
      • nested comprehensions and when to stop
      • generator expressions
      • unpacking and starred assignment
      • dict and set comprehensions
      • sorting with key functions
      • collections Counter and defaultdict and deque
      • cost intuition for lookup and insertion
    • 04–05Functions, closures, decorators and type hints

      What you build

      A timing-and-retry decorator applied across the codebase, and the mutable-default bug reproduced, explained and fixed, with the whole module passing a type checker.

      • positional and keyword arguments
      • default arguments and the mutable-default trap
      • args and kwargs
      • functions as first-class objects
      • closures and captured state
      • decorators and what they replace
      • functools wraps and lru_cache and partial
      • type hints for parameters and returns
      • Optional and Union and the modern pipe syntax
      • typing generics and Protocol
      • running pyright or mypy in the loop
  2. Week 2

    Sessions 6–10IntermediateAdvanced
    • 06Iterators, generators and lazy pipelines

      What you build

      A streaming reader that processes a file larger than memory as a generator pipeline, with the eager version kept alongside and both measured for peak memory.

      • the iterator protocol
      • iter and next
      • writing generators with yield
      • generators compared with returning lists
      • memory behaviour under large inputs
      • yield from
      • itertools islice and chain and groupby and product
      • building a lazy transformation pipeline
      • context managers with the with statement
      • contextlib contextmanager
      • closing resources reliably
    • 07Classes, dataclasses and the data model

      What you build

      The transit domain becomes typed: frozen dataclasses for stops and trips with equality and ordering that behave correctly inside sets and as dictionary keys.

      • designing a class around one responsibility
      • init and instance state
      • dunder methods
      • repr and str
      • eq and hash
      • dataclasses and frozen dataclasses
      • field defaults and default_factory
      • properties and computed attributes
      • classmethod and staticmethod
      • abstract base classes and Protocol compared
      • composition over inheritance
      • slots as awareness
    • 08Errors, logging and tests that matter

      What you build

      A domain that fails loudly and legibly: its own exception types, logging with context, and a pytest suite including a parametrised case and one deliberate failure fixed on camera.

      • the exception hierarchy
      • raising and catching precisely
      • custom exception types
      • try and except and else and finally
      • EAFP compared with LBYL
      • exception chaining with raise from
      • never swallowing exceptions
      • the logging module instead of print
      • log levels and structured context
      • pytest basics
      • fixtures
      • parametrised tests
      • testing for raised exceptions
      • coverage as a signal not a target
    • 09–10Build one: a typed HTTP service

      What you build

      Build one, the backend proof of concept. The Campus Transit service: a documented, validated FastAPI API over stops, routes and trip records, backed by SQLite, covered by tests and runnable by anyone who clones the repository.

      • FastAPI application structure
      • pydantic models for request and response validation
      • path and query and body parameters
      • dependency injection
      • status codes and error responses
      • automatic OpenAPI documentation
      • async and await and the event loop
      • when async helps and when it does not
      • SQLite with parameterised queries
      • project layout and pyproject.toml
      • testing an API with the test client
  3. Week 3

    Sessions 11–15Intermediate
    • 11–12NumPy and vectorised thinking

      What you build

      A distance-and-delay calculation rewritten from nested loops to vectorised NumPy, with the speed-up measured and the broadcasting rule that makes it work written out.

      • the ndarray and why it exists
      • dtypes and memory layout
      • shape and reshaping
      • indexing and boolean masks
      • broadcasting rules
      • vectorised operations compared with Python loops
      • axis semantics in reductions
      • views compared with copies
      • the modern random Generator API
      • floating-point surprises
      • measuring the speed difference honestly
    • 13–15pandas for real, messy data

      What you build

      A raw, deliberately dirty transit log (duplicates, missing timestamps, inconsistent route codes) turned into a clean, typed, documented dataset by a reproducible chain of transformations, each one justified in writing.

      • Series and DataFrame
      • loc compared with iloc
      • dtypes and categoricals and nullable types
      • reading CSV and Parquet
      • missing data and why fillna is a decision
      • duplicates
      • merge and join semantics
      • groupby split-apply-combine
      • aggregation and transform
      • pivot and melt
      • datetime handling and resampling
      • method chaining and pipe
      • copy-on-write behaviour
      • Polars as awareness
  4. Week 4

    Sessions 16–20Advanced
    • 16SQL, DuckDB and analytical stores

      What you build

      The same punctuality question answered three ways (pandas, SQL and DuckDB over Parquet), timed and compared, with a recommendation you can defend.

      • SQL from Python
      • parameterised queries and never formatting strings into SQL
      • SQLAlchemy Core for composable queries
      • DuckDB over CSV and Parquet files
      • window functions
      • common table expressions
      • aggregation in SQL compared with pandas
      • when the database should do the work
      • Parquet and columnar storage
      • partitioning as awareness
    • 17Data quality and reproducibility

      What you build

      A schema contract the pipeline refuses to run without, plus a rerun from raw data that reproduces yesterday's numbers exactly.

      • validating a dataframe against a schema
      • pandera and pydantic for data contracts
      • profiling a new dataset
      • detecting outliers and deciding what to do
      • leakage of assumptions between steps
      • deterministic seeds
      • notebooks compared with modules
      • structuring an analysis repository
      • separating raw and interim and processed data
      • documenting every transformation
    • 18Visual analysis and honest charts

      What you build

      Three charts that answer three stated questions, each with its axes defended, and one deliberately misleading version of the same data, annotated to explain the trick.

      • matplotlib figure and axes model
      • line and bar and scatter and histogram and box
      • choosing a chart for a question
      • labelling and units and readable ticks
      • small multiples
      • seaborn as awareness
      • showing uncertainty
      • truncated axes and other ways charts mislead
      • exporting figures for a report
      • when a table beats a chart
    • 19–20Build two: the analytics proof of concept

      What you build

      Build two, the analytics proof of concept: a reproducible punctuality and load analysis of the transit data, from raw file to a written report with charts, findings and stated limitations, rerunnable end to end with one command.

      • framing an analytical question
      • ingest and clean and validate
      • exploratory analysis
      • segmentation and cohorting
      • summarising for a non-technical reader
      • writing findings with caveats
      • separating what the data shows from what it suggests
      • packaging an analysis so it can be rerun
      • presenting the result
  5. Week 5

    Sessions 21–26Advanced
    • 21–22Framing a machine learning problem

      What you build

      A written problem statement with the target defined, the split justified, the metric chosen and defended, and a trivial baseline whose score every later model has to beat.

      • supervised compared with unsupervised
      • features and targets
      • regression compared with classification
      • train and validation and test splits
      • why a random split is sometimes wrong
      • time-based splits
      • data leakage and how it hides
      • the baseline you must beat
      • metrics for classification
      • the accuracy trap
      • precision and recall and F1
      • ROC-AUC and PR-AUC
      • metrics for regression
      • class imbalance
    • 23–24scikit-learn pipelines done properly

      What you build

      One Pipeline object that takes raw rows and returns predictions, every transformation fitted inside cross-validation, plus the leaking version kept alongside with its inflated score to show what leakage buys you.

      • the estimator API and fit and predict
      • transformers and fit_transform
      • why fitting on all the data leaks
      • ColumnTransformer for mixed types
      • Pipeline as the unit of work
      • encoding categoricals
      • scaling and when it matters
      • imputation inside the pipeline
      • cross-validation strategies
      • GridSearchCV and RandomizedSearchCV
      • nested validation as awareness
      • persisting a fitted pipeline
    • 25–26Models, evaluation and interpretation

      What you build

      Three model families compared on the same pipeline and metric, with learning curves, a threshold chosen for a stated cost of error, and permutation importance explaining what the winner actually used.

      • linear and logistic regression
      • regularisation
      • decision trees
      • random forests
      • gradient boosting including histogram-based implementations
      • k-means and clustering evaluation
      • bias and variance
      • learning curves and diagnosing underfitting compared with overfitting
      • confusion matrices and threshold selection
      • feature importance and its traps
      • permutation importance
      • partial dependence as awareness
      • probability calibration as awareness
  6. Week 6

    Sessions 27–30Advanced
    • 27Text, embeddings and where LLMs fit

      What you build

      A text classifier built with TF-IDF and compared against an LLM API call on the same labelled sample, with accuracy, cost and latency measured side by side, with a recommendation.

      • tokenisation
      • bag of words and TF-IDF
      • cosine similarity
      • text classification with classical models
      • word and sentence embeddings
      • vector similarity search intuition
      • when a small classical model beats a large language model
      • calling an LLM API from Python
      • treating prompts and responses as data
      • structured output and validation
      • cost and latency and rate limits
      • evaluation of generated text
      • guardrails and failure modes
    • 28From notebook to service

      What you build

      The model leaves the notebook: a versioned artefact loaded by the build-one API and served behind a validated endpoint, with the exact environment that produced it recorded.

      • serialising a fitted pipeline with joblib
      • versioning a model artefact
      • pinning the environment that produced it
      • wrapping a model behind the FastAPI service from build one
      • defining an inference contract with pydantic
      • input validation at the boundary
      • batch compared with online inference
      • logging predictions
      • monitoring and data drift as awareness
      • experiment tracking with MLflow as awareness
    • 29–30Build three: the machine learning baseline

      What you build

      Build three, the machine learning proof of concept: a defensible delay-prediction baseline for the transit data, framed, validated without leakage, compared against alternatives, served through the build-one API and documented with what it cannot do.

      • end-to-end problem framing
      • feature engineering from the cleaned dataset
      • pipeline construction
      • cross-validated model selection
      • honest evaluation against the baseline
      • error analysis
      • serving the chosen model
      • documenting assumptions and limitations
      • reproducibility from raw data to served prediction
      • review and demonstration

Batches

Choose a schedule that works for you

No dates yet

Tell us the schedule that would work

We plan batches around demand. Weekend, morning and intensive formats open when enough people ask for them.

Register your interest

Who teaches this

Learn with experienced practitioners

All trainers and mentors

Each batch is assigned its own trainer from this group, named before you enrol.

  • Vishal Shah

    Vishal Shah

    Founder & Principal Trainer

    Two decades building and teaching commerce, banking and cloud platforms, and still writing code

    • Java & Spring Boot microservices
    • TypeScript, React, Angular & Next.js
    • Composable commerce (commercetools)
    Full profile →
  • Shrenik Shah

    Shrenik Shah

    Principal Trainer

    Cloud and AI architect who has upskilled over 5,000 engineers in Java, React, Python and cloud

    • Python: Django, Flask, GenAI & agentic workflows
    • Java & Spring Boot
    • React & Angular, micro-frontend architecture
    Full profile →
  • Satish Mahajan

    Satish Mahajan

    Expert Trainer (Java, Testing & Automation)

    Seventeen years training enterprise engineering teams in Java, Python and test automation

    • Core & advanced Java, Spring Boot
    • Test automation: Selenium, Playwright, Cucumber
    • JUnit 5, TestNG, Mockito, Rest Assured, Karate
    Full profile →

Detailed course information

Full course brief

Most Python courses teach the syntax and stop. That is the part you could have read in a weekend. What separates someone who writes Python from someone a team hires is different: knowing why a "copy" of a list changed the original, why fitting a scaler before splitting inflated a score, why a loop that works on ten thousand rows dies on ten million, and why the notebook that produced last week's number cannot produce it again.

This course spends three sessions on the basics and the remaining twenty-seven on that. It is a starting point for three different directions (Python backend engineering, data analytics, and machine learning), and it is built so that you leave with a working proof of concept for each, over one dataset, so each build stands on the previous one.

Participation requirements

Some prior programming experience is strongly recommended, in any language. The basics are compressed into the first three sessions specifically so the rest of the course can go deeper, and a learner meeting variables and loops for the first time will find that pace difficult. If you have never programmed at all, DTA-16 C Programming or DTA-01 Professional Developer Foundations is the better first step; neither is a formal prerequisite.

Learners need regular access to a 64-bit Windows, Linux or macOS computer with at least 8 GB of memory, basic file-and-folder skills, and permission to install the course toolchain. Plan approximately 45–60 minutes of practice after most sessions, and up to two hours between build sessions. This practice is recommended for fluency and is not counted in the 60 guided hours.

Who should choose a different course

This course is not intended for experienced Python engineers who already write typed, tested, packaged code and use pandas and scikit-learn daily. It is a launch pad, not a specialisation.

It does not teach deep learning, neural network architectures, PyTorch or TensorFlow, computer vision, reinforcement learning, MLOps platforms, distributed computing with Spark, data engineering pipelines and orchestration, or production model monitoring at scale. Each of those deserves its own programme, and each assumes what is taught here. What this course gives you is the Python, the data discipline and the evaluation judgment that every one of those paths takes for granted.

Deep learning specifically is out of scope by design. A learner who cannot yet frame a problem, split data without leaking it or beat a trivial baseline will not benefit from a neural network; they will get a worse result they cannot diagnose.

Python version and toolchain

The course is taught on a current stable Python 3.12 or later. Environments and dependencies are managed with uv from the first session, because a reproducible environment is not an advanced topic. It is the difference between code that runs on one machine and code that runs. ruff handles linting and formatting, and a type checker runs from the module in which type hints are introduced.

Library choices reflect what teams actually use: FastAPI and pydantic for services, NumPy and pandas for data, DuckDB for analytical queries over files, matplotlib for figures, scikit-learn for modelling, and pytest throughout. Polars, MLflow and pandera are demonstrated as clearly-labelled awareness so learners recognise them in a real codebase without being assessed on them.

Notebooks are used where exploration genuinely belongs in a notebook, and modules are used everywhere else. Learners are taught to move code out of a notebook as soon as it is worth keeping, which is the habit most self-taught analysts are missing.

Development environment options

  1. Recommended: Visual Studio Code with the Python and Jupyter extensions, ruff, and a type checker. Free, widely used, and it exposes the debugger and the terminal rather than hiding them.
  2. Alternative: PyCharm with a configured interpreter. A more integrated project, refactoring and debugging experience, with higher system requirements, used under an appropriate JetBrains licence.

How each session works

Each two-hour session follows a consistent rhythm:

  • approximately 35 minutes of concept explanation and live demonstration
  • approximately 70 minutes of guided and independent coding
  • approximately 15 minutes of review, debugging discussion or a short formative learning check

The balance changes during build sessions, when most of the time is used for implementation, review and correction.

Three builds, one dataset

The course is organised in three parts of ten sessions. Each part ends in a proof of concept that a learner can show to an employer, and all three use the same Campus Transit domain (stops, routes, scheduled and actual trip times, passenger counts), so nothing is thrown away. The domain needs no specialist knowledge, and the brief supplies acceptance criteria and deliberately imperfect sample data without supplying the implementation.

Build one: the backend service (sessions 1–10)

A documented FastAPI service over stops, routes and trip records: pydantic request and response models, validation errors that say what is wrong, SQLite persistence with parameterised queries, dependency injection, automatic OpenAPI documentation, a pytest suite against the test client, and a pyproject.toml that lets anyone clone the repository and run it.

This is the deliverable for someone heading towards Python backend work, and it is the service the third build later deploys a model into.

Build two: the analytics proof of concept (sessions 11–20)

A reproducible punctuality and load analysis. The input is deliberately dirty: duplicated rows, missing timestamps, inconsistent route codes, mixed date formats. The output is a written report with charts, findings and stated limitations, produced by a pipeline that can be rerun from raw data with one command and return the same numbers.

Every transformation must be justified in writing. Deciding what to do with a missing value is a judgment with consequences, and treating it as a formatting detail is how analyses become wrong quietly.

Build three: the machine learning baseline (sessions 21–30)

A delay-prediction baseline built the way it is built professionally: the problem framed in writing, the target defined, the split justified, the metric chosen and defended, a trivial baseline established first, then scikit-learn pipelines cross-validated without leakage, several model families compared, a decision threshold chosen for a stated cost of error, and permutation importance used to explain what the model actually relied on.

The chosen pipeline is then serialised, versioned, and served behind the API from build one. The documentation must state what the model cannot do. A baseline you can defend and explain is worth more to an employer than a higher score you cannot account for.

Recommended depth and boundaries

Language depth

Closures, decorators, generators, the data model, dataclasses and type hints are required and assessed, because they are what separates readable Python from working Python. Metaclasses, descriptors, __init_subclass__, C extensions and bytecode internals are out of scope. The GIL is explained operationally, in terms of what it does and does not prevent, rather than formally.

Concurrency

async and await are taught in the context of the API, along with the honest answer to when concurrency helps: waiting on the network, not computing in Python. Threading, multiprocessing and the trade-offs between them are covered as awareness. Distributed execution is not covered.

Data work

pandas is taught to the level of defending your transformations, not memorising the API. Learners must be able to choose between pandas, SQL and DuckDB for a stated question and justify it. Streaming ingestion, orchestration tools and warehouse modelling belong to data engineering.

Machine learning

Framing, splitting, leakage, pipelines, cross-validation, metric selection, threshold choice and interpretation are required and assessed, because these are what practitioners get wrong. Model breadth stops at gradient boosting and clustering. Neural networks, hyperparameter search at scale and feature stores are not covered.

Large language models

One session, deliberately. Learners call an LLM API from Python, validate its output as data, measure cost and latency, and compare it against a classical model on the same labelled sample. The purpose is judgment about when to reach for one, not prompt technique.

Assessment and completion

Each session includes a formative learning check. The required final quiz is delivered in Moodle; session checks may also be assembled there after platform import review. Course completion requires:

  • at least 80% attendance
  • at least 60% on the required final quiz, with a maximum of two attempts

For the pilot batch, attendance and the final quiz are recorded and verified manually by the trainer. Automated tracking arrives with the learning platform; the completion criteria above are the same either way.

The three builds are reviewed and demonstrated as applied learning evidence, but they are not an additional completion gate for this pilot. The completion record confirms the attendance and knowledge-check criteria above; build evidence is recorded separately and does not claim an independently certified level of professional capability. This course does not provide a certification.

Learning materials

Active enrolled learners receive session study guides, starter projects, the deliberately imperfect datasets used in the builds, exercises, the course quick reference and interview-preparation material. Approved session recordings may be provided when a batch records them with the required notice, consent, review and access controls. Learner material is shared through restricted access. Study material is view-only where the platform supports it; starter code and exercise data are downloadable so learners can run and edit a personal working copy. Trainer plans, source presentations, solutions and question rationales remain private.

Interview-preparation material

Learners receive supplementary material covering the Python, pandas and machine-learning questions most commonly asked of early-career candidates, together with code-reading exercises and "what does this print" drills of the kind used in written screening rounds. It will be exported to an accessible participant format before release. This material supports revision; the course does not promise interview or employment outcomes.

No dates announced

We open batches around demand. Tell us the schedule that would work and we will let you know first.

Send your details instead

This website does not store or send these details. Your email or WhatsApp app will open with the message ready for you to review and send.

Where this leads

Continue with

Need help deciding?

Ask about the curriculum, delivery options or the next batch.

Talk to Academy
Enquire