Lesson 6 of 12
Structured learning draftModelling with Plotly
In Data Visualization - Tableau & Python, the way a learner handles modelling shapes how Plotly is used and evaluated. A model formalises a relationship between inputs and an outcome under assumptions. This intermediate lesson focuses on a decision or output that another person can inspect.
Learning objectives
- Explain modelling in the context of Data Visualization - Tableau & Python.
- Apply Plotly to a bounded practical task.
- Evaluate the result using explicit quality criteria.
Modelling: from context to evidence
Modelling connects question and source data to a checked finding in Data Visualization - Tableau & Python.
Define the purpose, intended user and Plotly constraints.
Separate fitting and evaluation data and document intended use.
Compare the observed result with a normal case, boundary case and stated limitation.
A model formalises a relationship between inputs and an outcome under assumptions. For Plotly, distinguish performing an operation from demonstrating that it suits the stated purpose. Separate fitting and evaluation data and document intended use. Record assumptions that could change the conclusion.
Apply modelling deliberately
- State the Data Visualization - Tableau & Python task and the decision it supports.
- Prepare a small Plotly case with a known input and difficult boundary.
- Separate fitting and evaluation data and document intended use.
- Compare the observed result with the expected behaviour and explain differences.
- Save the evidence, limitation and next action in a review record.
| Review point | Evidence |
|---|---|
| Purpose | The specific Plotly outcome and intended user |
| Method | The modelling decision, input and version or context |
| Result | Observed output plus a checked boundary case |
| Limitation | What the result does not establish and the next safe action |
Common mistakes
- Using Plotly before defining what modelling must achieve.
- Checking only the easiest Data Visualization - Tableau & Python example.
- Reporting a result without its input, assumptions or limitation.
Practice activity
Apply the lesson
For Data Visualization - Tableau & Python, complete a bounded Plotly task demonstrating modelling. Keep the original input, numbered method, normal test, boundary test, observed results and a 100-word self-review naming one limitation and next improvement.
How to check your work
- Write down the expected result before running or submitting your work.
- Try a normal example, an empty or missing input, and a boundary case where the rule changes.
- Compare the actual result with your prediction. Record the smallest example that explains a difference.
- Explain one change you made and why it improved the result. Save your evidence in the lesson notes.
When you get stuck · data
A chart or total changes unexpectedly after cleaning the data.
- Find the cause
- Compare row counts, missing values, duplicate identifiers and column types before and after each transformation. Check whether dates and decimal values were parsed correctly.
- Try this
- Keep the raw file unchanged. Apply one named cleaning rule at a time and save the count of affected rows. Do not silently replace missing values with zero.
- Check the fix
- Hand-calculate a five-row sample. Its total agrees with the script, and every removed or changed record has an explained rule.
Use this course-wide example when it fits your task. For a different failure, record the input, expected result, actual result and smallest steps that reproduce it.
Check your understanding
In Data Visualization - Tableau & Python, which evidence best supports a modelling result produced with Plotly?
Lesson summary
- For Data Visualization - Tableau & Python, modelling means: A model formalises a relationship between inputs and an outcome under assumptions.
- A credible Plotly result includes a checked boundary, not only a successful example.
- The next lesson builds on this modelling evidence record.
Sources and further reading
- The Python TutorialPython Software Foundation - accessed 2026-08-21
- User Guidescikit-learn - accessed 2026-08-21
Personal study note
Your notes
Keep the input, expected result, actual result and what you changed. Save before leaving this lesson. Download a copy to keep it outside this browser.