Lesson 1 Introduction to Python for Data Science (1)
Lesson 1 Introduction to Python for Data Science (1)
Google Colab
A free online alternative to run Python code
without setup.
Python Basics: Variables
Variable Definition
Containers to store data values in
Python.
Naming Rules
Use letters, numbers, underscores; avoid starting
with numbers.
Assignment
Use = to assign or reassign
variable values.
Examples
x = 5, name = "Alice", pi
= 3.14159
Python Basics: Data Types
Numeric Types Text and Boolean Sequences
Integers (int) and floating-point Strings (str) hold text; booleans Lists and tuples store ordered
numbers (float) represent store True or False values. collections of items.
numbers.
Working with Data Types
Type Conversion
1
Convert data types with int(), float(), str() to
fit needs.
Basic Operations
2
Perform math and combine strings using +
operator.
Examples
3
Calculate 5 + 3.2 and concatenate "Hello"
+ " World".
Load CSV
Import data files easily for
analysis.
Data Overview
Use .head(), .info(),
and .describe() for quick
insights.
Libraries
Introduced essential tools like NumPy and
Pandas.
Coming Up
Next lesson focuses on data manipulation and
analysis.
Resources
Access tutorials and practice exercises to
build skills.