Skip to content
Learn Netverks

Lesson

Step 34/36 94% through track

data-science-teaser

Data science teaser

Last reviewed May 28, 2026 Content v20260528
Track mode
server_script
Means
Server runner
Reading
~1 min
Level
advanced

This lesson

This lesson teaches Data science teaser: the syntax, patterns, and safety habits you need before advancing in Python.

NumPy/pandas build on Python syntax—this track is prerequisite before DS/ML topics.

You will apply Data science teaser in contexts like: Notebooks, pandas pipelines, and ML experimentation workflows.

Write Python 3 in the editor and click Run on server—the dev runner executes your script with print() for output; stdlib only in playground snippets (LEARNING_RUNNER_ENABLED=true).

When pointers, structs, and basic control flow from intermediate lessons are familiar.

Python dominates data science through notebooks, NumPy, pandas, and scikit-learn—install those locally via pip. This lesson previews concepts using stdlib only in the playground; full stacks need Jupyter on your machine.

Typical local stack

  • Jupyter — interactive notebooks for exploration
  • pandas — DataFrames for tabular data
  • NumPy — numerical arrays and vectorized math
  • matplotlib / seaborn — visualization

Stdlib preview: statistics

import statistics
data = [10, 12, 14, 18, 23]
print(statistics.mean(data))
print(statistics.median(data))

Compare careers with R or SQL-focused pipelines—Python glue connects APIs, ETL, and ML serving.

Important interview questions and answers

  1. Q: Why Python for data science?
    A: Readable syntax, rich PyPI ecosystem, and notebook workflow speed experimentation.
  2. Q: pandas vs SQL?
    A: SQL queries databases at scale; pandas manipulates in-memory tables—often used together.

Self-check

  1. What stdlib module computes mean and median?
  2. Can pandas run in this playground?

Tip: Install pandas/Jupyter locally—playground stays stdlib-only; statistics previews numeric summaries.

Interview prep

Why Python for data?

Readable syntax, PyPI stack (pandas, numpy), notebook workflow for exploration.

statistics module?

Stdlib mean/median/stdev—full analytics need local pandas/numpy install.

Interview tip Lesson completion confidence

Can you explain this lesson in 30 seconds without reading notes?

Not saved yet.

Playground

Runs on the configured server runner (dev: npm run runner with LEARNING_RUNNER_ENABLED=true). Output appears below the editor.

Check yourself

Multiple choice — immediate feedback.

Discussion

Past discussion is visible to everyone. Only logged-in users can post comments and replies.

Starter discussion topics

  • pandas next?
  • Notebook vs script?

Sign up or log in to post comments and sync lesson progress across devices.

No discussion yet. Be the first to ask a question.

Jump