Data Analytics Bootcamp
  • Syllabus
  • Statistical Thinking
  • SQL
  • Python
  • Tableau
  • Lab
  • Capstone
  1. Python
  • Syllabus
  • Statistical Thinking
    • Statistics
      • Statistics Session 01: Data Layers and Bias in Data
      • Statistics Session 02: Data Types
      • Statistics Session 03: Probabilistic Distributions
      • Statistics Session 04: Probabilistic Distributions
      • Statistics Session 05: Sampling
      • Statistics Session 06: Inferential Statistics
      • Slides
        • Course Intro
        • Descriptive Stats
        • Data Types
        • Continuous Distributions
        • Discrete Distributions
        • Sampling
        • Hypothesis Testing
  • SQL
    • SQL
      • Session 01: Intro to Relational Databases
      • Session 02: Intro to PostgreSQL
      • Session 03: DA with SQL | Data Types & Constraints
      • Session 04: DA with SQL | Filtering
      • Session 05: DA with SQL | Numeric Functions
      • Session 06: DA with SQL | String Functions
      • Session 07: DA with SQL | Date Functions
      • Session 08: DA with SQL | JOINs
      • Session 09: DA with SQL | Advanced SQL
      • Session 10: DA with SQL | Advanced SQL Functions
      • Session 11: DA with SQL | UDFs, Stored Procedures
      • Session 12: DA with SQL | Advanced Aggregations
      • Session 13: DA with SQL | Final Project
      • Slides
        • Intro to Relational Databases
        • Intro to PostgreSQL
        • Basic Queries: DDL DLM
        • Filtering
        • Numeric Functions
        • String Functions
        • Date Functions
        • Normalization and JOINs
        • Temporary Tables
        • Advanced SQL Functions
        • Reporting and Analysis with SQL
        • Advanced Aggregations
  • Python
    • Python
      • Session 01: Programming for Data Analysts
      • Session 02: Python basic Syntax, Data Structures
      • Session 03: Introduction to Pandas
      • Session 04: Advanced Pandas
      • Session 05: Intro to Data Visualization
      • Session 06: Data Visualization
      • Session 07: Working with Dates
      • Session 08: Data Visualization | Plotly
      • Session 09: Customer Segmentation | RFM
      • Slides
        • Data Analyst
  • Tableau
    • Tableau
      • Tableau Session 01: Introduction to Tableau
      • Tableau Session 02: Intermediate Visual Analytics
      • Tableau Session 03: Advanced Analytics
      • Tableau Session 04: Dashboard Design & Performance
      • Slides
        • Data Analyst
        • Data Analyst
        • Data Analyst
        • Data Analyst

On this page

  • Python (Miniconda)
    • Download
    • Windows Installation
      • Installation Steps
      • Verify Installation
    • macOS Installation
      • Installation Steps
      • Verify Installation
    • Creating and Managing Environments
      • Create a New Environment
      • Activate Environment
      • Deactivate Environment
      • List Environments
    • Installing Packages
      • Install a Package
      • Install Multiple Packages
      • Install Using pip
    • Updating Conda
    • Recommended Packages for the Course
    • Adding Environment to VS Code

Python

Lab Sessions

Python

Python (Miniconda)

Download

Download Miniconda from the official website:
download link

Choose the installer for your operating system:

  • Windows: Miniconda \(\rightarrow\) Windows 64-Bit Graphical Installer
  • macOS: Miniconda \(\rightarrow\) 64-Bit (Apple Silicon) Graphical Installer

Windows Installation

Installation Steps

  1. Download the Miniconda installer (.exe).

  2. Run the installer.

  3. During setup, enable:

    • Add Miniconda to my PATH environment variable
    • Register Miniconda as the system Python

  4. Complete the installation and restart your terminal.

Verify Installation

Open PowerShell or Command Prompt and run:

conda --version

Then test the Python installation:

python --version

Check whether pip is installed correctly:

pip --version

macOS Installation

Installation Steps

  1. Download the macOS installer (.pkg for Intel, .sh for Apple Silicon).
  2. If using the .pkg file, run it normally.
  3. If using the .sh installer:
    • install homebrew: /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
    • install miniconda: brew install --cask miniconda
  4. Accept the license terms.
  5. Allow Miniconda to initialize Conda in your shell.
  6. Restart Terminal.

Verify Installation

Run:

conda --version

Then verify Python:

python --version

For Mac users, it might be required to use python3 instead of python

python3 --version

Creating and Managing Environments

Create a New Environment

Example environment with Python 3.13:

conda create -n myenv python=3.13

Activate Environment

conda activate myenv

Deactivate Environment

conda deactivate

List Environments

conda env list

Installing Packages

Install a Package

conda install numpy

Install Multiple Packages

conda install pandas matplotlib seaborn

Install Using pip

Inside an activated environment:

pip install requests

Updating Conda

conda update conda

Recommended Packages for the Course

  • pandas
  • numpy
  • matplotlib
  • seaborn
  • scikit-learn
  • jupyter
  • plotly
  • folium
  • ipykernel (for VS Code integration)

Example install:

conda install pandas numpy matplotlib seaborn scikit-learn

We will explore these during class.


Adding Environment to VS Code

After activating the environment:

python -m ipykernel install --user --name myenv --display-name "Python (myenv)"

Then in VS Code:

  1. Open Command Palette (Ctrl+Shift+P or Cmd+Shift+P)
  2. Select Python: Select Interpreter
  3. Choose Python (myenv)
  4. In the bellow image it is just a python, meaning that my virtual environment name is python