Python Coding Classes for Kids East Coast Singapore
Python coding classes for kids on Singapore’s East Coast teach core syntax, data structures and introductory data analysis through live English mentorship—suitable for Bedok, Tampines and nearby families learning from home.

1. Introduction: Combining Multiple DataFrames
Real datasets are often split across tables (e.g. customers and orders). Pandas can combine them with:
- Merge / join — match on a shared key (like SQL joins)
- Concatenation — stack tables when no key match is needed
- Inner — only matching keys
- Left — all left rows, fill from right
- Right — all right rows, fill from left
- Outer — all rows from both sides
2. The Four Join Types
- Inner join — keep only rows whose key exists in both frames
- Left join — keep every left row; match right where possible
- Right join — keep every right row; match left where possible
- Outer join — keep every row from both sides
3. Sample Tables: customers and orders
import pandas as pd
customers = pd.DataFrame({
"customer_id": [1, 2, 3],
"name": ["Alice", "Bob", "Charlie"]
})
orders = pd.DataFrame({
"order_id": [101, 102, 103, 104],
"customer_id": [1, 2, 2, 3],
"amount": [250, 150, 300, 450]
})
Customers has three people; orders has four rows (Bob ordered twice).
4. Inner Join
merged_inner = pd.merge(customers, orders, on="customer_id", how="inner")
print(merged_inner)
IDs 1, 2, and 3 match both tables. Bob (id 2) appears twice because he has two orders. Result: four rows with names and amounts.
5. Left Join
merged_left = pd.merge(customers, orders, on="customer_id", how="left")
print(merged_left)
All customers are kept; order columns are filled where a match exists. Customers with no orders would still appear with null order fields.
6. Concatenation (pd.concat)
When you only need to stack rows and columns match, use concat:
concatenated_df = pd.concat([customers, customers], ignore_index=True)
print(concatenated_df)
This appends the second frame under the first (here, the same three customers twice). Column names and counts must match for a clean stack.
Lesson Q&A
Inner keeps only matching keys. Left keeps all left rows and fills from the right. Right keeps all right rows and fills from the left. Outer keeps every row from both tables.
Bob has one row in customers but two rows in orders (same customer_id). The inner join matches both order rows, so Bob’s name is repeated once per order.
pd.concat stacks tables without joining on a key. Both frames should have the same number of columns and the same column labels for a clean vertical append.
What children can learn
- Python syntax and data structures
- Introductory data analysis with Pandas
- Problem-solving with live mentor feedback
- Projects suited for East Coast / Singapore home learners
Recommended self-paced course for parents & educators
Python for Kids Beginners on Udemy (or related Python kids course).
Disclosure: This page may contain affiliate links. We may earn from qualifying purchases at no extra cost to you.
Frequently asked questions
Kids and teens learning from home in Bedok, Tampines, and nearby East Coast areas, via live online English sessions.
No. Beginners start with core Python; later modules introduce Pandas and simple data projects.
Message WhatsApp +92 322 421 7059 with your child’s age and preferred times.