Python – Statistics – Regression and Classification

Regression and Classification Regression models Getting started Regression is a technique used to model and analyze the relationships between variables contribute to producing a particular outcome. More concretely, it’s a way to determine which variables have an impact, which don’t, which factors interact, and how certain we are about this. (most common techniques – linear […]

Python – Statistics – EDA

Exploratory Data Analysis Descriptive Statistics Working with categorical data Relationship between two variables Descriptive Statistics what it sound like  help you describe the data with numerical calculations or plots many types – focus on most common ones : measures of centrality – measures of variability Measures of centrality Mean The mean is the average, which […]

Python – Object Oriented Programming – Design Inheritance & Properties

Best Practices Designing for Inheritance and Polymorphism Polymorphism   Interface

batch_withdraw() doesn’t need to check the object to know which withdraw() to call Liskov substitution principle Base class should be interchangeable with any of its subclasses without altering any properties of the program Wherever BankAccout woorks –> CheckingAccount should work as well Syntactically function […]

Python – Object Oriented Programming – Exceptions

Integration with Python Operator overloading : comparison Object equality

  Variables are references

Due to the fact how the objects and variables representing them are stored printing the value of the (customer) object –> prints the memory allocation chunk the value = reference to the memory chunk ))> so when comparing we are […]

Python – Object Oriented Programming – Class Inheritance

Inheritance and Polymorphism Instance and Class Data Core Principles of OOP Inheritance Extending functionality of existing code Polymorphism Creating an unified interface Encapsulation Bundling of data and Methods Instance-level data

name , salary are instance attributes self binds to an instance Class-level data

data shared among all instances of a class define class […]

Python Basics – Boolean Operations

Boolean Operations Boolean logic consists of operations done between True and False values : and ( logical conjunction) or ( logical disjunction) not ( logical negation ) Object Evaluation Evaluates as False Constants : False and None Numeric zero : 0 and 0.0 Lengths of zero : “” and [] Evaluates as True everything else […]

Python Basics – Comparison Operators

Comparison Operators Equality :  == , != Order: < , > , <= , >= Assignment Operator Assignment : =  

Equality Comparisons datetimes numbers ( float / int ) dictionaries strings …

Comparing different types

Not equal operator

Order operators Less than < Less than or equal <= Greater than > Greater than […]