Online · Mapo · Seoul

AI Logic and Introduction to Machine Learning in Mapo, Seoul

An AI logic and introduction to machine learning course for Mapo, Seoul introduces how computers learn from examples—through visual tools, pattern labs and clear talk about responsible AI use.

AI Mapo Seoul

1. Understanding Time Series Data

Time series data records events in chronological order. Date columns need proper parsing—not treatment as plain strings—so you can resample, trend, and compare periods.

2. Setting a Datetime Index

import pandas as pd

df = pd.read_csv("ecommerce_orders.csv", parse_dates=["Order Date"])
df = df.set_index("Order Date")

print("Dataset Shape:", df.shape)
print("Index Type:", type(df.index))
print(df.head(3))

With Order Date as the index, rows become chronological records of when orders arrived.

3. Monotonicity Check

is_ordered = df.index.is_monotonic_increasing
print("Datetime Index is Monotonically Increasing:", is_ordered)

If this is True, timestamps do not jump backward—useful before aggregations.

4. Monthly Resampling with 'ME'

Modern Pandas uses 'ME' (Month End) instead of the older 'M' alias:

monthly_revenue = df["Revenue"].resample("ME").sum()
print(monthly_revenue.head())

Illustrative totals: Jan 2022 ≈ 35,624; Feb 2022 ≈ 29,998 (indexed to each month’s last calendar day).

5. Month-over-Month Growth (.pct_change)

monthly_growth = monthly_revenue.pct_change()
print(monthly_growth.head())

First period is NaN (no prior month). Example: Feb ≈ −16% (shorter month); Mar ≈ +1.3%; Apr ≈ +1.5%. Positive values mean growth; negative values mean contraction.

6. Aggregation Sanity Check

raw_revenue_sum = df["Revenue"].sum()
resampled_revenue_sum = monthly_revenue.sum()
print("Match:", resampled_revenue_sum == raw_revenue_sum)

If both sums match, resampling did not drop or double-count rows.

Lesson Q&A

Setting a date column as the index enables resampling, range slicing, and period analysis. Check df.index.is_monotonic_increasing; True means time moves forward without backward jumps.

Older code used 'M'; current Pandas prefers 'ME' (Month End). .resample("ME").sum() totals revenue to each month’s last day (e.g. Jan end 35,624; Feb end 29,998 in the sample).

.pct_change() shows relative period growth (e.g. Feb −16%, Mar +1.3%). Confirming monthly_revenue.sum() == df["Revenue"].sum() proves totals stayed consistent after resampling.

What children can learn

WhatsApp +92 322 421 7059

AI and Robotics Club | The 100 Mission AI & Robotics Hero Journey

Recommended self-paced course for parents & educators

ChatGPT for Kids on Udemy.

Disclosure: This page contains affiliate links. We may earn from qualifying purchases at no extra cost to you. Links are intended for parents and educators, not as marketing directed at young children.

Patterns, Not Magic: Age-Appropriate AI Logic for Mapo Families

Mapo families need AI explained as data and patterns. Students never share personal data with AI tools. Enquire support@aiandroboticsclub.com or WhatsApp +92 322 4217059.

Frequently asked questions

Is an artificial intelligence course suitable for middle and primary school students in Mapo?

Yes! Our course breaks down machine learning, computer vision, and neural network principles into interactive, kid-friendly projects using visual tools like mBlock and Scratch extension modules.

What key AI concepts and ethical logic frameworks will Mapo students learn?

Students learn how algorithms process camera data, train facial and gesture recognition models, code voice-responsive bots, and critically evaluate data privacy and ethical AI usage in modern society.

How can parents in Mapo, Seoul check class schedules and book a free trial?

Click the WhatsApp inquiry button on this page to receive our updated weekly schedule and book a free trial session at your convenience.

Explore related learning

GangnamRobotics · Gangnam YongsanScratch · Yongsan SeochoLogic · Seocho