
Install python
The python interpreter
Writing our first python code
Python IDLE program
Installing Anaconda
Create your first python notebook
Learn to use the Jupyter notebook interface, launch via Anaconda Navigator, navigate the dashboard, manage notebooks and folders, and prepare to write Python code in Jupyter notebooks.
Explore the Jupyter notebook interface, write and run Python code in cells, and master keyboard shortcuts for inserting, deleting, and executing cells.
Setting up IDE - Visual Studio Code
Explore Python basics by declaring variables and strings, using the print function in a Jupyter notebook, and applying variable naming rules and uppercase constants for clear code.
Learn how to use the hash mark to add comments in Python, and see how comments organize modules, variables, and main routines while the interpreter ignores them.
download the sample Python notebook and upload it to the Jupyter notebook environment, then open it and run commands to explore Python structures.
Master working with integers and floats in Python, performing arithmetic and exponent operations, using parentheses to control order, and learning underscores for large numbers and multiple assignments.
String functions
Explore Python string formatting techniques using f-strings and format to create universal templates with placeholders, dynamic variables, and reassignment, illustrated through greetings.
Explore Python string manipulation: concatenate strings with plus and spaces, measure length with len, slice and index, and use methods like capitalize and upper.
Intro to Numbers
Explore working with numbers in Python by mastering integers, floats, operations (addition, subtraction, multiplication, division, exponentiation), and features like underscores for readability, multiple assignments, and constants.
Explore modulus and floor division to compute remainders and truncated quotients in Python, using examples like 11 mod 5 and 11 // 5 to distinguish remainder from truncation.
Built-in functions for numbers
Discover how to use Python's math module to perform advanced math operations, from square roots and factorials to trigonometry, degrees, radians, and NaN checks, via import and examples.
Master python number formatting with f-strings to display subtotal and totals using a dollar sign, thousand separators, two-decimal precision, percentage formatting, and multi-line, aligned outputs.
The double equality sign
Getting User Input
Python Operators
Logical Operators
Comparison Operators
Boolean Operators
Python List
Adding and removing elements in a list
Popping items from a list
Removing an item by value
Permanent and temporarily sort
Reverse a list
Avoiding Index errors
Explore the Python list constructor and learn how to convert strings, tuples, and numbers into lists, with practical examples converting various data formats to lists.
Learn how to loop through a Python list using for loops to print and manipulate each element, with emphasis on meaningful temporary variable names and indentation.
Discover how Python uses indentation to define loop blocks and position code after a for loop, including print statements inside the loop. Learn to avoid common indentation and syntax errors.
Numerical List
min, max and sum functions
Negative Indexing
Multi-diementional list
Range function
Looping multi-dimentional list
Slicing of a list
Slicing a List Part 2
Iterate over multiple list
Check if an item exist or not
Count total occurrence of an item
Membership operators
Learn to find the most common item in a list by removing duplicates with set and using max with a count key to identify the most frequent element.
Nested List
List Comprehensions
List Comprehensions with if clause
Nested List Comprehensions
Flatten a list of lists
Remove duplicates from the list
Combine lists using the plus operator for concatenation and the star operator for repetition, then explore looping and printing results, and finally pair lists with zip to create tuples.
Learn how Python tuples are immutable, ordered collections with index-based access. Create empty or single-element tuples, and mix data types while using optional parentheses and comma syntax.
tuple constructor
Access tuple items
Nested Tuples
Slicing a tuple
Change Tuple item
Change Tuple item?
Concatenation and Repetition
Iterate through a tuple
Tuple Sorting
Tuple Packing & Unpacking
Tuple count() method
Tuple index() method
all function with tuple
any() function with tuples
sum() function with tuples
enumerate() function with tuples
Create, Set Constructor, Add and remove methods
Find Length, clear all elements, and iterate all elements
Check if an item exist or not
pop() method
Explore numpy, a high‑performance module for array processing in scientific computing. Create arrays with numpy.array, understand that elements share a type, and navigate rank, indexing by tuples, and shape.
Explore numpy array attributes, focusing on shape as a tuple of dimensions. Determine how many rows and columns a 2d array has, and distinguish single versus multi dimensional arrays.
Explore NumPy array attributes such as ndim, size, dtype, and nbytes, demonstrating how to determine dimensions, count elements, inspect data types, and measure storage for one- and two-dimensional arrays.
Explore numpy data types and how numpy guesses and forces dtypes in arrays, including ints, floats, complex numbers, and booleans, with upcasting rules.
Develop numpy arrays with constant values by using zeros, ones, empty, fill, and full to shape 1d, 2d, and 3d arrays while preserving dimensions.
Discover how to create arrays from space values using range, linspace, and logspace in NumPy, with start, end, and step, noting end exclusion for range and end inclusion for linspace.
Explore creating 2d numpy arrays with diagonals using the identity function, shifting diagonals with the k parameter, and customizing diagonal values with diag and full or range-based fills.
Create NumPy arrays from functions using custom and lambda functions, defining shape and dtype for 1d and 2d arrays, including a 3x4 example.
Indexing and slicing a one-dimensional numpy array starts at zero, letting you access the first and last elements, minus one and minus two, and slices with start, end, and step.
Learn indexing and slicing of a 2d array, using row and column indices (zero-based), with examples like retrieving 52 and comparing double-bracket versus single-bracket notation, plus slicing ranges.
Explore numpy views and copies to understand how slicing creates a view that reflects changes in the original array, and how copying with copy() isolates modifications.
Explore numpy array indexing and slicing, including single and multi-dimensional arrays, using linspace to create arrays and indexing from another array or list.
Explore indexing in a multi-dimensional numpy array by constructing a 5 by 5 int array and using index arrays to select specific rows and columns with zero-based indexing.
Explore how boolean indexing uses a boolean expression to filter numpy arrays, from simple one-dimensional cases to multi-dimensional arrays, and extract actual values with index expressions.
Learn how to reshape a 1d numpy array to 2d with numpy.reshape, using a 4x2 example, and flatten or ravel to 1d. Reshape and ravel produce views, flatten copies.
Learn how to join NumPy arrays using concatenate along different axes, and use stack, hstack, vstack, and dstack to combine arrays into new shapes.
Explore how to use numpy's array_split, split, and vsplit to divide 1d and 2d arrays into multiple equal or uneven sections, including along rows and columns.
Explore how to search arrays with numpy where and searchsorted, performing a binary search to return indices for elements meeting conditions, including multi-dimensional shapes and insertion to maintain sort order.
Learn how NumPy's sort method arranges elements in ascending or descending order, returning a copy to keep the original array intact and applying to numbers, strings, booleans, and 2D arrays.
Compare in place numpy array.sort with the built-in sorted, highlighting return types none and list, and explore index based sorting with argsort to show space and performance trade-offs.
Sort a matrix by rearranging values within its columns while preserving the original shape, using an np matrix created from a string and applying sort to align the columns.
Learn to iterate through 1D, 2D, and 3D numpy arrays using Python for loops, printing each scalar element and building from single loops to nested loops.
Master iterating multi-dimensional NumPy arrays with nditer to flatten values and ndenumerate to access corresponding indices, enabling filtering and targeted value updates without multiple for loops.
This lecture covers NumPy array arithmetic, including addition, subtraction, multiplication, division, floor division, exponentiation, and modulus on same-shaped arrays, with reshape to 3x2 and element-wise operations.
Explore numpy-based mathematical functions to transform arrays, including square roots, exponentials, log base two, trig functions, and controlled rounding.
Compare two numpy arrays element-wise to produce boolean results using operations like ==, !=, >, <, >=, and <=; ensure arrays are the same size for accurate element-wise comparisons.
Explore conditional functions to filter data with logical conditions and vectorized operations, applying on-the-fly rules to arrays A, B, and C using numpy where and related logic.
Explore numpy aggregation functions, including sum, mean, axis handling for 1d and 2d arrays, with initial values and axis-based column or row summaries.
Discover how to create pandas dataframes from lists and dictionaries, and see how real-world data from SQL, S3, CSV, or Excel can be loaded into a dataframe.
Create an empty data frame by calling the pandas data frame constructor with no arguments, yielding zero columns and indices for later data insertion.
Learn to create a dataframe from a list of lists, convert a two lists setup into a pandas DataFrame, and set column names with the columns parameter.
Rename pandas DataFrame columns and indices using a stock order type example; convert a list to a DataFrame, set a column name, and map indices to B, S, H.
Learn to convert a list of dictionaries into a pandas DataFrame using pd.DataFrame, with dictionary keys becoming columns and optional index customization.
Learn to create a dataframe from tuples using zip by pairing two lists into a 1-to-1 relationship, converting to a pandas dataframe, and renaming columns.
Check dataframe equality using the pandas equals method to verify identical data, demonstrated with a pandas and numpy setup in a Google Colab notebook.
Explore using pandas testing tools to compare dataframe columns and frames with assert_series_equal and assert_frame_equal, controlling data types, names, and exactness for reliable equality checks.
Count word occurrences in a pandas column by concatenating strings and applying a count function, demonstrated with a UFO sighting data frame to reveal word frequencies.
Learn to count words in a column by aggregating string values, handling duplicates, and applying a concatenation technique in a Pandas dataframe to compute word counts.
Convert one set of values to another in pandas using map with a dictionary, factorize, and conditional binary casting on a Titanic data frame.
Convert continuous data to categories using pandas by applying cut and qcut on the Titanic age column, creating three bins like child, young adult, and adult.
Learn to create a datetime column from month, day, and year across multiple dataframe columns using pandas to_datetime, converting separate fields into a single datetime value.
Resample a date time column in pandas to compute daily, monthly, and yearly means, using the on parameter or a time index, with stock and UFO data examples.
Learn how to create a cross tabulation report in pandas, comparing sex and PC class using crosstab and pivot_table, including margins for totals and interpreting counts.
Learn to fill missing values in a data frame using linear interpolation. Apply the linear method to estimate gaps in large datasets with missing values.
Transpose wide data frames to convert columns into rows, revealing all columns and enabling full descriptive statistics with count, mean, and standard deviation in pandas.
Learn to create sample dataframes in pandas using dataframe constructors, random data, and utility methods such as make dataframe, make missing dataframe, and make time dataframe for testing.
Identify missing rows between data frames by performing a left merge with an indicator, then filter for left-only rows to reveal which rows are absent.
Use pandas query to filter and calculate mean values without intermediate variables, perform group-by symbol means, chain operations, and merge to reveal missing rows.
Learn to reshape a wide data frame into long form with melt, turning distance data from factory, warehouse, and retail into rows for easy merging with another data frame.
Build fast, production-ready rest APIs with Python using FastAPI. Create CRUD operations, database connections, JWT security, and OpenAPI documentation.
Set up a FastAPI project in a virtual environment, install FastAPI and uvicorn, create a versioned v1 route with a simple get endpoint, and run with uvicorn.
Explore path parameters in FastAPI by building endpoints like the root and API v1 articles, using article IDs and Python f-string style, with integer validation and built-in documentation.
FastAPI's built-in interactive API documentation at /docs, with automatic swagger/openapi, endpoint listings, path parameters, data validation, and a live try-out to explore and test your APIs.
Distinguish path parameters from query parameters and define defaults, types, and optional values for API endpoints. Use skip and limit to control article lists and demonstrate input validation.
Validate API request bodies with Pydantic models, then create articles via a post endpoint, returning the structured JSON data and example responses.
Set up a cloud-backed Postgres SQL database with SQL Alchemy for a fast API app, install SQL Alchemy and the Postgres client, and configure Elephant SQL as the cloud service.
Set up a database connection using SQLAlchemy by creating an engine, declarative base, and a session, then configure a Postgres URL and bind it to the engine.
Define a SQLAlchemy model for the postgres database by creating article class mapped to the articles table, with id as a primary key, and title string(100) and description string(255) columns.
Learn to create Pydantic schemas for identity by defining an article schema with id, title, and description, and distinguish between models and schemas in FastAPI and SQLAlchemy.
Populate all tables on PostgreSQL by importing models, binding the engine, and invoking base.metadata.create_all to create the article table, then prepare for inserting, updating, and deleting data.
Learn to add records to a PostgreSQL database using FastAPI and SQLAlchemy, including creating a session, dependencies, article schema mapping, and a put endpoint that returns the new record.
Learn how http status codes signal API responses, from 200 and 201 to internal server error and bad request, and use FastAPI’s status class to assign these codes in endpoints.
Welcome to Mega Python!
This course will guide you through everything you need to know to use Python for practical use and more! I’ve worked for Bloomberg for 17+ years and will present the knowledge to help you in this course.
This course is a 'Mega Course', packed with so many practical topics to help you success practically! We'll cover the following topics:
Python Fundamentals
NumPy for High Speed Numerical Processing
Pandas for Efficient Data Analysis
Matplotlib for Data Visualization
Pandas Time Series Analysis Techniques
Statsmodels
Importing financial markets data
Create interactive financial charts with plotly
Time series analysis with indexing, filling and resampling
Create interactive data apps with streamlit
Data visualization with Dash
Why you should listen to me...
In my career, I have built an extensive level of expertise and experience in both areas: Finance and Coding
Finance:
17 years experience in Bloomberg for the Finance and Investment Industry...
Build various financial markets analytics companies like
KlickAnalytics,
Cryptoquote
ClickAPIs and more
Python & Pandas:
My existing companies extensively used python based models and algorithms
Code, models, and workflows are Real World Project-proven
Best Seller author on Udemy
e.g. PostgreSQL Bootcamp: Go from Beginner to Advanced, 60+ Hours course
Master Redis - From Beginner to Advanced, 20+ hours
Python for Finance
What are you waiting for? Guaranteed Satisfaction: Otherwise, get your money back with 30-day money back guaranteed by Udemy.
Looking Forward to seeing you in the Course!
LETS GET STARTED!