STA1000 - Data Analytics and Metrics
In Lecture 1 we have seen that Analytics is the process to transform Data to Information. Once done, Information should be structured in a convincing story bringing textual with values and visusal evidence with graphs. Ultimately, this should be use to make decisions.
You also met Loomrow, and were handed insta-data.csv. We have seen how good AI is but also that you will have to stand behind everything you submit, including AI outputs.
Today we open that file, decide what can be drawn from it, and build the first views in the tool your first assignment is marked in.
An addition to Michael’s list would be to transform headers with a proper naming convention
My suggestion is snake_case: all small letter and words separated by “_”
Charts can mess up with other software
No more than 1 heading row and remove blanks
Remove blanks before data
snake_case is preferable but any would do
Better format and keeps only the current sheet
On the module Loop page, got to “Lecture Data” and download the document called unicef.xlsx:
1. Using AI, clean the 1st sheet of this file but only until column P, remove all other columns.
2. Calculate the sum of the 2nd column to obtain the world population in 2018.
Every tool on earth reads it. Nothing is hidden. It diffs cleanly in version control. It is the default answer.
What it does not carry:
A value containing a comma must be quoted: LR0184,"Back in stock, finally",535086. Some exports forget, and the row silently gains a column.
A European Excel writes LR0203;124,50;18422: the decimal separator is a comma, so the delimiter becomes a semicolon. Load it with default settings and 124,50 becomes text, or 12450.
Dates. 03/04/2026 is 3 April in Dublin and 4 March in Boston. Insist on YYYY-MM-DD, which sorts correctly as text and cannot be misread.
Encoding. Read a Latin-1 file as UTF-8 and €180 becomes €180, Dupré becomes Dupré. Called mojibake, and not fixable by find-and-replace once saved twice. Use UTF-8.
Excel carries types, sheets, formulas and formatting, and is what your stakeholders usualy use.
JSON is nested rather than rectangular, and it is what APIs return, including GA4 and Meta in Semester 2. Carries types, costs four times the space, has to be flattened to do analytics.
Parquet is columnar, typed, compressed and binary: reading three columns of a hundred never touches the other ninety-seven.
Connectors (Google Sheets, SQL, BigQuery) are live. A file is a photograph; a connector is a window.
Download data/formats/ from Loop. In pairs:
insta-data.csv in a text editor, then in Excel. What did Excel change?insta-data-european.csv in Excel. What went wrong, and why?insta-data.json. How many rows does it have, and how can you tell?


Variables can be converted to either Categorical and Continuous but it is always better to keep them in their correct scale. Example:
Likert items are Categorical Ordinal but are analysed as Continuous.
Gender item is Categorical Nominal but can be recoded as 1 and 2.
| Variable Name | Variable Range | Variable Type |
|---|---|---|
| Gender | Male/Female/Other | |
| Country | Ireland/France/USA | |
| Age | 0 to Inf | |
| Age | 0-19, 20-29, 30-39, 40-49 | |
| Price | 0 to Inf | |
| Temperature | -Inf to Inf | |
| IQ | Low/Mid/High | |
| Results | 0 to 100 | |
| Results | Fail/Pass/2:1/First |
| Variable Name | Variable Range | Variable Type |
|---|---|---|
| Gender | Male/Female/Other | Categorical Nominal |
| Country | Ireland/France/USA | Categorical Nominal |
| Age | 0 to Inf | Continuous |
| Age | 0-19, 20-29, 30-39, 40-49 | Categorical Ordinal |
| Price | 0 to Inf | Continuous |
| Temperature | -Inf to Inf | Continuous |
| IQ | Low/Mid/High | Categorical Ordinal |
| Results | 0 to 100 | Continuous |
| Results | Fail/Pass/2:1/First | Categorical Ordinal |

| Variable Name | Variable Type |
|---|---|
| productName | |
| supplierID | |
| categoryID | |
| quantityPerUnit | |
| unitPrice | |
| unitsInStock |

| Variable Name | Variable Type |
|---|---|
| productName | Categorical Nominal |
| supplierID | Categorical Nominal |
| categoryID | Categorical Nominal |
| quantityPerUnit | Categorical Nominal |
| unitPrice | Continuous |
| unitsInStock | Continuous |
Tableau Software is an interactive data visualization software company focused on business intelligence:
Tableau is a set of different product which aims to create interactive data visualisation dashboard.
Among these product, you will find:





Tableau is very similar to Power BI but it actually simpler in its structure (but the visualisation capabilities are more complex):
There are 4 types of areas:




Tableau is only about:

Without being too complicated, there is two major ways to connect data in Tableau:
Files can be of format .csv, .xls, .xlsx, .json, …
Databases cloud hosted on google drive or with OData protocol (url access to the data)
More details about Tableau data connection possibilities with the following contents among others found online:

From the loop page, on the tile “Lecture Data”, use the file insta-data.csv
Open it in Tableau Public (do not save it as .xlsx first)
Try to figure out how to create your first visualisation.

Dimensions = Categorical Variables
Measures = Continuous Variables

Special features behind the Data Tab:

Equivalent to Excel Pivot Table but for visualisations

When selected as Rows or Columns, double click/click left on a Measure variable (green variable)
Choose between:

With the insta-data.csv file, create:
theme and likesposted_at and impressionslikes and impressionsThen, create a dashboard with these visualisations an publish your dashboard.

Thanks for your attention and don’t hesitate to ask if you have any questions!