liveBook · Manning

Structured data

As explained in Outlier Detection in Python

Tabular data is data organized into rows and columns, typically representing records and their attributes.

Structured data organizes observations into rows and features into columns. In tabular form, each row can represent a record, entity, time period, or summarized collection of original records. section 1.3 section 12.6

Tabular structure makes unusual records easier to examine with standard univariate and multivariate outlier detection. Its usefulness depends on choosing features that expose the behavior or context of interest; flagged rows still require interpretation. section 1.3 section 12.6

Useful tabular representations include:

  • Entity summaries, where each row aggregates many original records and each feature captures a relevant statistic. section 12.6
  • Context-enriched records, where lag, difference, and historical-average features let each row represent a time-series value with relevant history. section 17.2.5
  • Window tables, where each row represents a period and columns contain values within that period, enabling multivariate comparison. section 17.2.8

Social-media account summaries

A user-activity table can include average posts per day, maximum posts per day, maximum posts per hour, and unique active hours. One account stands out with 403 posts in a day; another posts during at least 24 unique hours in a day. section 12.6

Table 12.3 Example table of social media accounts (view table figure)

User ID

Avg # posts per day

Max # posts per day

Max # posts per hour

Maximum # unique hours per day

Avg # unique hours per day

1

0.4

10

7

4

1.1

2

30

403

10

3

2.0

3

0.2

8

2

24

1.9

Shows how raw user activity becomes one row per account with features designed to reveal unusual behavior. section 12.6

Table 17.5 Time series from table 17.2 with additional features for historical context (view table figure)

Timestamp

Value

Lag 1

Diff 1

Mean Prev 2

2015-02-26 21:42:53

2

–

–

–

2015-02-26 21:47:53

2

2

0

–

2015-02-26 21:52:53

4

2

–2

2

2015-02-26 21:57:53

3

4

1

3

Shows how lag, difference, and previous-value means add temporal context while retaining a tabular representation. section 17.2.5

How Outlier Detection in Python covers it

How deep it goes
Explains row and feature design through aggregation, temporal feature engineering, and period reshaping, but defers detector-specific theory.
Examples
Uses social-media account summaries, historical time-series features, and weekly tables containing one row per period.
What it assumes
Starts from table data and extends the same representation to summarized records, time-series context, and other data modalities.
What you can do after
Apply it via engineered tables that expose unusual entities, records, or time windows to standard outlier detectors.
How it connects
Connects structured data with outlier detection, feature engineering, collective outliers, time-series data, and embeddings.

Also explained in

Compare how 24 books explain structured data →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Outlier Detection in Python. The section links point to the parts of the book it draws on.